Skip to content

Commit 01b8361

Browse files
fixed error in assert and updated docstring
1 parent e84ecd0 commit 01b8361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/callbacks_step/glm_speed.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
"""
3-
GlmSpeedCallback(; glm_scale=0.5, cfl=1.0)
3+
GlmSpeedCallback(; glm_scale=0.5, cfl)
44
55
Update the divergence cleaning wave speed `c_h` according to the time step
66
computed in [`StepsizeCallback`](@ref) for the ideal GLM-MHD equations.
@@ -41,7 +41,7 @@ function GlmSpeedCallback(; glm_scale=0.5, cfl)
4141
# when is the callback activated
4242
condition = (u, t, integrator) -> true
4343

44-
@assert 0 <= glm_speed_callback.glm_scale <= 1 "glm_scale must be between 0 and 1"
44+
@assert 0 <= glm_scale <= 1 "glm_scale must be between 0 and 1"
4545

4646
glm_speed_callback = GlmSpeedCallback(glm_scale, cfl)
4747

0 commit comments

Comments
 (0)