Skip to content

Commit

Permalink
post merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 committed Nov 15, 2023
1 parent d940fcc commit 164cd5c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
11 changes: 8 additions & 3 deletions src/arkode/arkode.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ int arkEvolve(ARKodeMem ark_mem, sunrealtype tout, N_Vector yout,
sunrealtype troundoff, nrm;
sunbooleantype inactive_roots;
sunrealtype dsm;
int nflag, attempts, ncf, nef, constrfails;
int nflag, ncf, nef, constrfails;
int relax_fails;

/* Check and process inputs */
Expand Down Expand Up @@ -843,16 +843,21 @@ int arkEvolve(ARKodeMem ark_mem, sunrealtype tout, N_Vector yout,

/* Looping point for step attempts */
dsm = ZERO;
attempts = ncf = nef = constrfails = ark_mem->last_kflag = 0;
ncf = nef = constrfails = ark_mem->last_kflag = 0;
relax_fails = 0;
nflag = FIRST_CALL;

#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_DEBUG
int attempts = 0;
#endif

for(;;) {

/* increment attempt counters */
attempts++;
ark_mem->nst_attempts++;

#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_DEBUG
attempts++;
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_DEBUG,
"ARKODE::arkEvolve", "start-step",
"step = %li, attempt = %i, h = %"RSYM", tcur = %"RSYM,
Expand Down
2 changes: 1 addition & 1 deletion src/cvode/cvode_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ typedef struct CVodeMemRec {

/* Resize history workspace */
N_Vector resize_wrk[L_MAX];
booleantype first_step_after_resize;
sunbooleantype first_step_after_resize;

int cv_err_weight_method;

Expand Down
4 changes: 2 additions & 2 deletions src/cvode/cvode_resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include "cvode_impl.h"
#include <sundials/sundials_types.h>

#define ZERO RCONST(0.0) /* real 0.0 */
#define ONE RCONST(1.0) /* real 1.0 */
#define ZERO SUN_RCONST(0.0) /* real 0.0 */
#define ONE SUN_RCONST(1.0) /* real 1.0 */

/* -----------------------------------------------------------------------------
* Build Adams Nordsieck array from f(t,y) history
Expand Down
4 changes: 2 additions & 2 deletions test/unit_tests/cvode/CXX_serial/test_nordsieck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include <nvector/nvector_serial.h>
#include "test_utilities.hpp"

#define ZERO RCONST(0.0) /* real 0.0 */
#define ONE RCONST(1.0) /* real 1.0 */
#define ZERO SUN_RCONST(0.0) /* real 0.0 */
#define ONE SUN_RCONST(1.0) /* real 1.0 */
#define PI 3.14159265358979323846

/* -----------------------------------------------------------------------------
Expand Down

0 comments on commit 164cd5c

Please sign in to comment.