Skip to content

Commit

Permalink
comment on ARK_RETRY_STEP
Browse files Browse the repository at this point in the history
  • Loading branch information
maggul committed Oct 20, 2024
1 parent 5e530ec commit fad0406
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/arkode/arkode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3002,10 +3002,12 @@ int arkCheckConvergence(ARKodeMem ark_mem, int* nflagPtr, int* ncfPtr)
ARKodeHAdaptMem hadapt_mem;

if (*nflagPtr == ARK_SUCCESS) { return (ARK_SUCCESS); }
/* Returns with an ARK_RETRY_STEP flag happen in a step much
before any algebraic solvers involve. For this reason, we
immediately return form arkCheckConvergence since it is
irrelevant in an ARK_RETRY_STEP case */
/* Returns with an ARK_RETRY_STEP flag occur at a stage well before
any algebraic solvers are involved. On the other hand,
the arkCheckConvergence function handles the results from algebraic
solvers, which never take place with an ARK_RETRY_STEP flag.
Therefore, we immediately return from arkCheckConvergence,
as it is irrelevant in the case of an ARK_RETRY_STEP */
if (*nflagPtr == ARK_RETRY_STEP) { return (ARK_RETRY_STEP); }

/* The nonlinear soln. failed; increment ncfn */
Expand Down

0 comments on commit fad0406

Please sign in to comment.