Skip to content

Commit

Permalink
Fix threshold detection for reaction substepper (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
termi-official authored Aug 8, 2024
1 parent b087c9c commit 56945d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver/time/partitioned_solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Adapt.@adapt_structure AdaptiveForwardEulerSubstepperCache
# TODO get Cₘ
cell_rhs!(du_local, u_local, x, t, cell_model)

if du_local[φₘidx] < cache.reaction_threshold
if abs(du_local[φₘidx]) < cache.reaction_threshold
for j in 1:length(u_local)
u_local[j] += Δt*du_local[j]
end
Expand Down

0 comments on commit 56945d6

Please sign in to comment.