Skip to content

Commit

Permalink
fixed error in assert and updated docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwinters5000 committed Nov 23, 2020
1 parent e84ecd0 commit 01b8361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/callbacks_step/glm_speed.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

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

@assert 0 <= glm_speed_callback.glm_scale <= 1 "glm_scale must be between 0 and 1"
@assert 0 <= glm_scale <= 1 "glm_scale must be between 0 and 1"

glm_speed_callback = GlmSpeedCallback(glm_scale, cfl)

Expand Down

0 comments on commit 01b8361

Please sign in to comment.