Skip to content

Commit

Permalink
move shared upates outside conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 committed May 12, 2024
1 parent e29fe49 commit d4e4a64
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/arkode/arkode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,18 +1062,15 @@ int ARKodeEvolve(void* arkode_mem, sunrealtype tout, N_Vector yout,
break;
}
ark_mem->tretlast = *tret = tout;
ark_mem->next_h = ark_mem->hprime;
istate = ARK_SUCCESS;
break;
}
else
{
N_VScale(ONE, ark_mem->yn, yout);
ark_mem->tretlast = *tret = ark_mem->tcur;
ark_mem->next_h = ark_mem->hprime;
istate = ARK_SUCCESS;
break;
}
ark_mem->next_h = ark_mem->hprime;
istate = ARK_SUCCESS;
break;
}

/* In ONE_STEP mode, copy y and exit loop */
Expand Down

0 comments on commit d4e4a64

Please sign in to comment.