Skip to content

Commit

Permalink
fix Euler acoustics callback error (#1244)
Browse files Browse the repository at this point in the history
Caused by an update of SciMLBase.jl.
  • Loading branch information
ranocha authored Oct 23, 2022
1 parent 554009c commit 4afc4b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/callbacks_step/euler_acoustics_coupling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ function (euler_acoustics_coupling::EulerAcousticsCouplingCallback)(integrator_a
if !isfinished(integrator_euler)
@trixi_timeit timer() "Euler solver" step!(integrator_euler)
return_code = check_error(integrator_euler)
if return_code !== :Success && return_code !== :Default
# Check the return code with `!=` instead of `!==` recommended for
# `Symbol`s in general since the return code can be a plain symbol
# or an enum overloading `==` and `!=`, depending on the version of
# SciMLBase.jl.
if return_code != :Success && return_code != :Default
error("Error during compressible Euler time integration. Received return code $(return_code)")
end
end
Expand All @@ -202,4 +206,4 @@ end

include("euler_acoustics_coupling_dg2d.jl")

end # @muladd
end # @muladd

0 comments on commit 4afc4b7

Please sign in to comment.