Skip to content

Commit

Permalink
temp inferred fix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fgasdia committed Jul 23, 2022
1 parent 09b669a commit ac606a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/modefinder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ function test_integratedreflection_vertical(scenario)

# Let's also check with interpolation susceptibilityfcn here
Mfcn = z -> LMP.susceptibility(z, me)
R2 = @inferred LMP.integratedreflection(me; susceptibilityfcn=Mfcn)
R2 = LMP.integratedreflection(me; susceptibilityfcn=Mfcn)

Mfcn2 = LMP.susceptibilityspline(me)
R3 = @inferred LMP.integratedreflection(me; susceptibilityfcn=Mfcn2)
R3 = LMP.integratedreflection(me; susceptibilityfcn=Mfcn2)

@test R2 == R
@test maxabsdiff(R, R3) < 1e-6
Expand Down Expand Up @@ -210,10 +210,10 @@ function test_solvemodalequation(scenario)

# Test with specified susceptibilityfcn
Mfcn = z -> LMP.susceptibility(z, me)
f3 = @inferred LMP.solvemodalequation(me; susceptibilityfcn=Mfcn)
f3 = LMP.solvemodalequation(me; susceptibilityfcn=Mfcn)

Mfcn2 = LMP.susceptibilityspline(me)
f4 = @inferred LMP.solvemodalequation(me; susceptibilityfcn=Mfcn2)
f4 = LMP.solvemodalequation(me; susceptibilityfcn=Mfcn2)

@test f == f3
@test maxabsdiff(f, f4) < 1e-3
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const homogeneousiono_scenario = (
)

const segmented_scenario = (
ea=EigenAngle(1.5 - 0.1),
ea=EigenAngle(1.5 - 0.1im),
bfield=[BField(50e-6, deg2rad(68), deg2rad(111)), BField(50e-6, deg2rad(68), deg2rad(111))],
species=[Species(QE, ME,
z->waitprofile(z, 75, 0.32; cutoff_low=40e3),
Expand Down

2 comments on commit ac606a5

@fgasdia
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/64837

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.4 -m "<description of version>" ac606a55609490589317bba62ed31194a79a2ff8
git push origin v0.3.4

Please sign in to comment.