Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macro for consistent sunrealtype formatting #517

Open
wants to merge 28 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3f3be17
Squash commits
Steven-Roberts Jun 21, 2024
39b1620
Merge branch 'develop' into feature/real-format3
gardner48 Jun 22, 2024
c32face
Merge branch 'develop' into feature/real-format3
gardner48 Jun 22, 2024
83905c8
update .out files
gardner48 Jun 24, 2024
65e9da0
Merge branch 'develop' into feature/real-format3
gardner48 Jun 27, 2024
50f32bb
Apply suggestions from code review
Steven-Roberts Jun 28, 2024
fe7f76d
Update src/sundials/sundials_utils.h
Steven-Roberts Jun 28, 2024
84024ab
Remove final newline from matrix output
Steven-Roberts Jun 29, 2024
494f217
Merge branch 'feature/real-format3' of github.com:LLNL/sundials into …
Steven-Roberts Jun 29, 2024
bdb5bbb
Switch IDA to sunfprintf_*
Steven-Roberts Jun 29, 2024
df13a2a
Switch to SUN_FORMAT_*
Steven-Roberts Jun 29, 2024
817ed11
Switch to 'e' format for MRI tables
Steven-Roberts Jun 29, 2024
a415ce9
Apply formatter
Steven-Roberts Jun 29, 2024
9b654df
Use space consistently in format
Steven-Roberts Jun 29, 2024
e9c9a71
Fix ida real stats
Steven-Roberts Jun 29, 2024
7cd0509
Switch Butcher table to 'e' format
Steven-Roberts Jun 29, 2024
9aaddfe
update output files
gardner48 Jun 30, 2024
fbd7ad0
Merge branch 'develop' into feature/real-format3
gardner48 Jul 3, 2024
77f6135
Merge branch 'develop' into feature/real-format3
Steven-Roberts Jul 27, 2024
aef939b
Remove sign padding from g format
Steven-Roberts Jul 27, 2024
50d8d8c
Merge branch 'develop' into feature/real-format3
Steven-Roberts Aug 29, 2024
9ec1fad
Merge branch 'develop' into feature/real-format3
Steven-Roberts Sep 6, 2024
e7d6397
Merge branch 'develop' into feature/real-format3
Steven-Roberts Sep 17, 2024
5399b9e
Revert out files to make future merges easier
Steven-Roberts Sep 17, 2024
9bfb997
Merge branch 'develop' into feature/real-format3
Steven-Roberts Oct 17, 2024
629611b
Merge branch 'develop' into feature/real-format3
Steven-Roberts Nov 23, 2024
9067dd7
Remove RSYM from LSRKStep
Steven-Roberts Nov 23, 2024
fe5a7e3
Finish updating print all stats functions
Steven-Roberts Nov 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions include/sundials/sundials_linearsolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,18 +226,6 @@ SUNErrCode SUNLinSolFree(SUNLinearSolver S);
#define SUNLS_QRFACT_FAIL 807 /* QRfact found singular matrix */
#define SUNLS_LUFACT_FAIL 808 /* LUfact found singular matrix */

/* -----------------------------------------------------------------------------
* SUNLinearSolver messages
* ---------------------------------------------------------------------------*/

#if defined(SUNDIALS_EXTENDED_PRECISION)
#define SUNLS_MSG_RESIDUAL "\t\tlin. iteration %ld, lin. residual: %Lg\n"
#elif defined(SUNDIALS_DOUBLE_PRECISION)
#define SUNLS_MSG_RESIDUAL "\t\tlin. iteration %ld, lin. residual: %g\n"
#else
#define SUNLS_MSG_RESIDUAL "\t\tlin. iteration %ld, lin. residual: %g\n"
#endif
gardner48 marked this conversation as resolved.
Show resolved Hide resolved

#ifdef __cplusplus
}
#endif
Expand Down
12 changes: 0 additions & 12 deletions include/sundials/sundials_nonlinearsolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,18 +192,6 @@ SUNErrCode SUNNonlinSolGetNumConvFails(SUNNonlinearSolver NLS,
#define SUN_NLS_CONTINUE +901 /* not converged, keep iterating */
#define SUN_NLS_CONV_RECVR +902 /* convergece failure, try to recover */

/* -----------------------------------------------------------------------------
* SUNNonlinearSolver messages
* ---------------------------------------------------------------------------*/

#if defined(SUNDIALS_EXTENDED_PRECISION)
#define SUN_NLS_MSG_RESIDUAL "\tnonlin. iteration %ld, nonlin. residual: %Lg\n"
#elif defined(SUNDIALS_DOUBLE_PRECISION)
#define SUN_NLS_MSG_RESIDUAL "\tnonlin. iteration %ld, nonlin. residual: %g\n"
#else
#define SUN_NLS_MSG_RESIDUAL "\tnonlin. iteration %ld, nonlin. residual: %g\n"
#endif
gardner48 marked this conversation as resolved.
Show resolved Hide resolved

#ifdef __cplusplus
}
#endif
Expand Down
9 changes: 9 additions & 0 deletions include/sundials/sundials_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,18 @@ extern "C" {
*------------------------------------------------------------------
*/

#define SUN_STRING_HELPER(x) #x
#define SUN_STRING(x) SUN_STRING_HELPER(x)

#if defined(SUNDIALS_SINGLE_PRECISION)

typedef float sunrealtype;
#define SUN_RCONST(x) x##F
#define SUN_BIG_REAL FLT_MAX
#define SUN_SMALL_REAL FLT_MIN
#define SUN_UNIT_ROUNDOFF FLT_EPSILON
#define SUN_FORMAT_E "% ." SUN_STRING(FLT_DIG) "e"
#define SUN_FORMAT_G "%." SUN_STRING(FLT_DIG) "g"
Steven-Roberts marked this conversation as resolved.
Show resolved Hide resolved

#elif defined(SUNDIALS_DOUBLE_PRECISION)

Expand All @@ -99,6 +104,8 @@ typedef double sunrealtype;
#define SUN_BIG_REAL DBL_MAX
#define SUN_SMALL_REAL DBL_MIN
#define SUN_UNIT_ROUNDOFF DBL_EPSILON
#define SUN_FORMAT_E "% ." SUN_STRING(DBL_DIG) "e"
#define SUN_FORMAT_G "%." SUN_STRING(DBL_DIG) "g"

#elif defined(SUNDIALS_EXTENDED_PRECISION)

Expand All @@ -107,6 +114,8 @@ typedef long double sunrealtype;
#define SUN_BIG_REAL LDBL_MAX
#define SUN_SMALL_REAL LDBL_MIN
#define SUN_UNIT_ROUNDOFF LDBL_EPSILON
#define SUN_FORMAT_E "% ." SUN_STRING(LDBL_DIG) "Le"
#define SUN_FORMAT_G "%." SUN_STRING(LDBL_DIG) "Lg"

#endif

Expand Down
57 changes: 30 additions & 27 deletions src/arkode/arkode.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,8 @@ int ARKodeEvolve(void* arkode_mem, sunrealtype tout, N_Vector yout,
#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_DEBUG
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_DEBUG, "ARKODE::ARKodeEvolve",
"start-step",
"step = %li, attempt = %i, h = %" RSYM
", tcur = %" RSYM,
"step = %li, attempt = %i, h = " SUN_FORMAT_G
", tcur = " SUN_FORMAT_G,
ark_mem->nst, attempts, ark_mem->h, ark_mem->tcur);
#endif

Expand Down Expand Up @@ -1269,17 +1269,17 @@ void ARKodePrintMem(void* arkode_mem, FILE* outfile)
fprintf(outfile, "user_efun = %i\n", ark_mem->user_efun);
fprintf(outfile, "tstopset = %i\n", ark_mem->tstopset);
fprintf(outfile, "tstopinterp = %i\n", ark_mem->tstopinterp);
fprintf(outfile, "tstop = %" RSYM "\n", ark_mem->tstop);
fprintf(outfile, "tstop = " SUN_FORMAT_G "\n", ark_mem->tstop);
fprintf(outfile, "VabstolMallocDone = %i\n", ark_mem->VabstolMallocDone);
fprintf(outfile, "MallocDone = %i\n", ark_mem->MallocDone);
fprintf(outfile, "initsetup = %i\n", ark_mem->initsetup);
fprintf(outfile, "init_type = %i\n", ark_mem->init_type);
fprintf(outfile, "firststage = %i\n", ark_mem->firststage);
fprintf(outfile, "uround = %" RSYM "\n", ark_mem->uround);
fprintf(outfile, "reltol = %" RSYM "\n", ark_mem->reltol);
fprintf(outfile, "Sabstol = %" RSYM "\n", ark_mem->Sabstol);
fprintf(outfile, "uround = " SUN_FORMAT_G "\n", ark_mem->uround);
fprintf(outfile, "reltol = " SUN_FORMAT_G "\n", ark_mem->reltol);
fprintf(outfile, "Sabstol = " SUN_FORMAT_G "\n", ark_mem->Sabstol);
fprintf(outfile, "fixedstep = %i\n", ark_mem->fixedstep);
fprintf(outfile, "tolsf = %" RSYM "\n", ark_mem->tolsf);
fprintf(outfile, "tolsf = " SUN_FORMAT_G "\n", ark_mem->tolsf);
fprintf(outfile, "call_fullrhs = %i\n", ark_mem->call_fullrhs);

/* output counters */
Expand All @@ -1290,18 +1290,18 @@ void ARKodePrintMem(void* arkode_mem, FILE* outfile)
fprintf(outfile, "netf = %li\n", ark_mem->netf);

/* output time-stepping values */
fprintf(outfile, "hin = %" RSYM "\n", ark_mem->hin);
fprintf(outfile, "h = %" RSYM "\n", ark_mem->h);
fprintf(outfile, "hprime = %" RSYM "\n", ark_mem->hprime);
fprintf(outfile, "next_h = %" RSYM "\n", ark_mem->next_h);
fprintf(outfile, "eta = %" RSYM "\n", ark_mem->eta);
fprintf(outfile, "tcur = %" RSYM "\n", ark_mem->tcur);
fprintf(outfile, "tretlast = %" RSYM "\n", ark_mem->tretlast);
fprintf(outfile, "hmin = %" RSYM "\n", ark_mem->hmin);
fprintf(outfile, "hmax_inv = %" RSYM "\n", ark_mem->hmax_inv);
fprintf(outfile, "h0u = %" RSYM "\n", ark_mem->h0u);
fprintf(outfile, "tn = %" RSYM "\n", ark_mem->tn);
fprintf(outfile, "hold = %" RSYM "\n", ark_mem->hold);
fprintf(outfile, "hin = " SUN_FORMAT_G "\n", ark_mem->hin);
fprintf(outfile, "h = " SUN_FORMAT_G "\n", ark_mem->h);
fprintf(outfile, "hprime = " SUN_FORMAT_G "\n", ark_mem->hprime);
fprintf(outfile, "next_h = " SUN_FORMAT_G "\n", ark_mem->next_h);
fprintf(outfile, "eta = " SUN_FORMAT_G "\n", ark_mem->eta);
fprintf(outfile, "tcur = " SUN_FORMAT_G "\n", ark_mem->tcur);
fprintf(outfile, "tretlast = " SUN_FORMAT_G "\n", ark_mem->tretlast);
fprintf(outfile, "hmin = " SUN_FORMAT_G "\n", ark_mem->hmin);
fprintf(outfile, "hmax_inv = " SUN_FORMAT_G "\n", ark_mem->hmax_inv);
fprintf(outfile, "h0u = " SUN_FORMAT_G "\n", ark_mem->h0u);
fprintf(outfile, "tn = " SUN_FORMAT_G "\n", ark_mem->tn);
fprintf(outfile, "hold = " SUN_FORMAT_G "\n", ark_mem->hold);
fprintf(outfile, "maxnef = %i\n", ark_mem->maxnef);
fprintf(outfile, "maxncf = %i\n", ark_mem->maxncf);

Expand Down Expand Up @@ -2522,7 +2522,8 @@ int arkCompleteStep(ARKodeMem ark_mem, sunrealtype dsm)

#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_DEBUG
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_DEBUG, "ARKODE::arkCompleteStep",
"end-step", "step = %li, h = %" RSYM ", tcur = %" RSYM,
"end-step",
"step = %li, h = " SUN_FORMAT_G ", tcur = " SUN_FORMAT_G,
ark_mem->nst, ark_mem->h, ark_mem->tcur);
#endif

Expand Down Expand Up @@ -2633,9 +2634,10 @@ int arkHandleFailure(ARKodeMem ark_mem, int flag)
MSG_ARK_MASSSOLVE_FAIL);
break;
case ARK_NLS_SETUP_FAIL:
arkProcessError(ark_mem, ARK_NLS_SETUP_FAIL, __LINE__, __func__,
__FILE__, "At t = %Lg the nonlinear solver setup failed unrecoverably",
(long double)ark_mem->tcur);
arkProcessError(ark_mem, ARK_NLS_SETUP_FAIL, __LINE__, __func__, __FILE__,
"At t = " SUN_FORMAT_G
" the nonlinear solver setup failed unrecoverably",
ark_mem->tcur);
break;
case ARK_VECTOROP_ERR:
arkProcessError(ark_mem, ARK_VECTOROP_ERR, __LINE__, __func__, __FILE__,
Expand Down Expand Up @@ -2663,17 +2665,18 @@ int arkHandleFailure(ARKodeMem ark_mem, int flag)
break;
case ARK_INTERP_FAIL:
arkProcessError(ark_mem, ARK_INTERP_FAIL, __LINE__, __func__, __FILE__,
"At t = %Lg the interpolation module failed unrecoverably",
(long double)ark_mem->tcur);
"At t = " SUN_FORMAT_G
" the interpolation module failed unrecoverably",
ark_mem->tcur);
break;
case ARK_INVALID_TABLE:
arkProcessError(ark_mem, ARK_INVALID_TABLE, __LINE__, __func__, __FILE__,
"ARKODE was provided an invalid method table");
break;
case ARK_RELAX_FAIL:
arkProcessError(ark_mem, ARK_RELAX_FAIL, __LINE__, __func__, __FILE__,
"At t = %Lg the relaxation module failed",
(long double)ark_mem->tcur);
"At t = " SUN_FORMAT_G " the relaxation module failed",
ark_mem->tcur);
break;
case ARK_RELAX_MEM_NULL:
arkProcessError(ark_mem, ARK_RELAX_MEM_NULL, __LINE__, __func__, __FILE__,
Expand Down
36 changes: 23 additions & 13 deletions src/arkode/arkode_adapt.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,25 @@ void arkPrintAdaptMem(ARKodeHAdaptMem hadapt_mem, FILE* outfile)
{
if (hadapt_mem != NULL)
{
fprintf(outfile, "ark_hadapt: etamax = %" RSYM "\n", hadapt_mem->etamax);
fprintf(outfile, "ark_hadapt: etamx1 = %" RSYM "\n", hadapt_mem->etamx1);
fprintf(outfile, "ark_hadapt: etamxf = %" RSYM "\n", hadapt_mem->etamxf);
fprintf(outfile, "ark_hadapt: etamin = %" RSYM "\n", hadapt_mem->etamin);
fprintf(outfile, "ark_hadapt: etamax = " SUN_FORMAT_G "\n",
hadapt_mem->etamax);
fprintf(outfile, "ark_hadapt: etamx1 = " SUN_FORMAT_G "\n",
hadapt_mem->etamx1);
fprintf(outfile, "ark_hadapt: etamxf = " SUN_FORMAT_G "\n",
hadapt_mem->etamxf);
fprintf(outfile, "ark_hadapt: etamin = " SUN_FORMAT_G "\n",
hadapt_mem->etamin);
fprintf(outfile, "ark_hadapt: small_nef = %i\n", hadapt_mem->small_nef);
fprintf(outfile, "ark_hadapt: etacf = %" RSYM "\n", hadapt_mem->etacf);
fprintf(outfile, "ark_hadapt: cfl = %" RSYM "\n", hadapt_mem->cfl);
fprintf(outfile, "ark_hadapt: safety = %" RSYM "\n", hadapt_mem->safety);
fprintf(outfile, "ark_hadapt: growth = %" RSYM "\n", hadapt_mem->growth);
fprintf(outfile, "ark_hadapt: lbound = %" RSYM "\n", hadapt_mem->lbound);
fprintf(outfile, "ark_hadapt: ubound = %" RSYM "\n", hadapt_mem->ubound);
fprintf(outfile, "ark_hadapt: etacf = " SUN_FORMAT_G "\n", hadapt_mem->etacf);
fprintf(outfile, "ark_hadapt: cfl = " SUN_FORMAT_G "\n", hadapt_mem->cfl);
fprintf(outfile, "ark_hadapt: safety = " SUN_FORMAT_G "\n",
hadapt_mem->safety);
fprintf(outfile, "ark_hadapt: growth = " SUN_FORMAT_G "\n",
hadapt_mem->growth);
fprintf(outfile, "ark_hadapt: lbound = " SUN_FORMAT_G "\n",
hadapt_mem->lbound);
fprintf(outfile, "ark_hadapt: ubound = " SUN_FORMAT_G "\n",
hadapt_mem->ubound);
fprintf(outfile, "ark_hadapt: nst_acc = %li\n", hadapt_mem->nst_acc);
fprintf(outfile, "ark_hadapt: nst_exp = %li\n", hadapt_mem->nst_exp);
fprintf(outfile, "ark_hadapt: pq = %i\n", hadapt_mem->pq);
Expand Down Expand Up @@ -146,7 +154,8 @@ int arkAdapt(ARKodeMem ark_mem, ARKodeHAdaptMem hadapt_mem, N_Vector ycur,
#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_INFO
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_INFO, "ARKODE::arkAdapt",
"new-step-before-bounds",
"h_acc = %" RSYM ", h_cfl = %" RSYM, h_acc, h_cfl);
"h_acc = " SUN_FORMAT_G ", h_cfl = " SUN_FORMAT_G, h_acc,
h_cfl);
#endif

/* enforce safety factors */
Expand All @@ -162,7 +171,8 @@ int arkAdapt(ARKodeMem ark_mem, ARKodeHAdaptMem hadapt_mem, N_Vector ycur,
#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_INFO
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_INFO, "ARKODE::arkAdapt",
"new-step-after-max-min-bounds",
"h_acc = %" RSYM ", h_cfl = %" RSYM, h_acc, h_cfl);
"h_acc = " SUN_FORMAT_G ", h_cfl = " SUN_FORMAT_G, h_acc,
h_cfl);
#endif

/* increment the relevant step counter, set desired step */
Expand Down Expand Up @@ -191,7 +201,7 @@ int arkAdapt(ARKodeMem ark_mem, ARKodeHAdaptMem hadapt_mem, N_Vector ycur,

#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_DEBUG
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_DEBUG, "ARKODE::arkAdapt",
"new-step-eta", "eta = %" RSYM, ark_mem->eta);
"new-step-eta", "eta = " SUN_FORMAT_G, ark_mem->eta);
#endif

return (retval);
Expand Down
29 changes: 15 additions & 14 deletions src/arkode/arkode_arkstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,15 +727,15 @@ void arkStep_PrintMem(ARKodeMem ark_mem, FILE* outfile)
fprintf(outfile, "ARKStep: implicit Butcher table:\n");
ARKodeButcherTable_Write(step_mem->Bi, outfile);
}
fprintf(outfile, "ARKStep: gamma = %" RSYM "\n", step_mem->gamma);
fprintf(outfile, "ARKStep: gammap = %" RSYM "\n", step_mem->gammap);
fprintf(outfile, "ARKStep: gamrat = %" RSYM "\n", step_mem->gamrat);
fprintf(outfile, "ARKStep: crate = %" RSYM "\n", step_mem->crate);
fprintf(outfile, "ARKStep: eRNrm = %" RSYM "\n", step_mem->eRNrm);
fprintf(outfile, "ARKStep: nlscoef = %" RSYM "\n", step_mem->nlscoef);
fprintf(outfile, "ARKStep: crdown = %" RSYM "\n", step_mem->crdown);
fprintf(outfile, "ARKStep: rdiv = %" RSYM "\n", step_mem->rdiv);
fprintf(outfile, "ARKStep: dgmax = %" RSYM "\n", step_mem->dgmax);
fprintf(outfile, "ARKStep: gamma = " SUN_FORMAT_G "\n", step_mem->gamma);
fprintf(outfile, "ARKStep: gammap = " SUN_FORMAT_G "\n", step_mem->gammap);
fprintf(outfile, "ARKStep: gamrat = " SUN_FORMAT_G "\n", step_mem->gamrat);
fprintf(outfile, "ARKStep: crate = " SUN_FORMAT_G "\n", step_mem->crate);
fprintf(outfile, "ARKStep: eRNrm = " SUN_FORMAT_G "\n", step_mem->eRNrm);
fprintf(outfile, "ARKStep: nlscoef = " SUN_FORMAT_G "\n", step_mem->nlscoef);
fprintf(outfile, "ARKStep: crdown = " SUN_FORMAT_G "\n", step_mem->crdown);
fprintf(outfile, "ARKStep: rdiv = " SUN_FORMAT_G "\n", step_mem->rdiv);
fprintf(outfile, "ARKStep: dgmax = " SUN_FORMAT_G "\n", step_mem->dgmax);

#ifdef SUNDIALS_DEBUG_PRINTVEC
/* output vector quantities */
Expand Down Expand Up @@ -1835,8 +1835,8 @@ int arkStep_TakeStep_Z(ARKodeMem ark_mem, sunrealtype* dsmPtr, int* nflagPtr)
{
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_INFO,
"ARKODE::arkStep_TakeStep_Z", "start-stage",
"step = %li, stage = %i, implicit = %i, h = %" RSYM
", tcur = %" RSYM,
"step = %li, stage = %i, implicit = %i, h "
"= " SUN_FORMAT_G ", tcur = " SUN_FORMAT_G,
ark_mem->nst, 0, implicit_stage, ark_mem->h,
ark_mem->tcur);
#ifdef SUNDIALS_LOGGING_EXTRA_DEBUG
Expand Down Expand Up @@ -1888,8 +1888,8 @@ int arkStep_TakeStep_Z(ARKodeMem ark_mem, sunrealtype* dsmPtr, int* nflagPtr)
#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_DEBUG
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_DEBUG,
"ARKODE::arkStep_TakeStep_Z", "start-stage",
"step = %li, stage = %i, implicit = %i, h = %" RSYM
", tcur = %" RSYM,
"step = %li, stage = %i, implicit = %i, h "
"= " SUN_FORMAT_G ", tcur = " SUN_FORMAT_G,
ark_mem->nst, is, implicit_stage, ark_mem->h,
ark_mem->tcur);
#endif
Expand Down Expand Up @@ -2097,7 +2097,8 @@ int arkStep_TakeStep_Z(ARKodeMem ark_mem, sunrealtype* dsmPtr, int* nflagPtr)
#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_INFO
SUNLogger_QueueMsg(ARK_LOGGER, SUN_LOGLEVEL_INFO,
"ARKODE::arkStep_TakeStep_Z", "end-step",
"step = %li, h = %" RSYM ", dsm = %" RSYM ", nflag = %d",
"step = %li, h = " SUN_FORMAT_G ", dsm = " SUN_FORMAT_G
", nflag = %d",
ark_mem->nst, ark_mem->h, *dsmPtr, *nflagPtr);
#endif

Expand Down
Loading
Loading