Skip to content

Commit

Permalink
Fixed 'apply suggestion' errors
Browse files Browse the repository at this point in the history
  • Loading branch information
drreynolds committed Oct 22, 2024
1 parent 3c94fba commit b64f62f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions examples/arkode/CXX_serial/ark_kpr_nestedmri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,10 +948,10 @@ int main(int argc, char* argv[])
printf(" "
"---------------------------------------------------------------------"
"-------\n");
printf(" %10.6" FSYM " %10.6" FSYM " %10.6" FSYM " %10.6" FSYM " %.2" ESYM
while (Tf - t > SUN_RCONST(1.0e-8))
printf(" %10.6" FSYM " %10.6" FSYM " %10.6" FSYM " %10.6" FSYM
" %.2" ESYM " %.2" ESYM " %.2" ESYM "\n",
t, ydata[0], ydata[1], ydata[2], uerr, verr, werr);
while (Tf - t > SUN_RCONST(1.0e-8))
while (Tf - t > SUN_RCONST(1.0e-8))
{
// reset reference solver so that it begins with identical state
retval = ARKodeReset(arkode_ref, t, y);
Expand Down Expand Up @@ -1050,7 +1050,7 @@ int main(int argc, char* argv[])
uerrtot = std::sqrt(uerrtot / nsts);
verrtot = std::sqrt(verrtot / nsts);
werrtot = std::sqrt(werrtot / nsts);
errtot = std::sqrt(errtot / nsts / 3);
errtot = std::sqrt(errtot / nsts / 3);
std::cout << "\nFinal Solver Statistics:\n";
std::cout << " Slow steps = " << nsts << " (attempts = " << natts
<< ", fails = " << netfs << ")\n";
Expand Down Expand Up @@ -1294,7 +1294,7 @@ static int fs(sunrealtype t, N_Vector y, N_Vector ydot, void* user_data)
// fse routine to compute the explicit slow portion of the ODE RHS.
static int fse(sunrealtype t, N_Vector y, N_Vector ydot, void* user_data)
{
Options* opts. = static_cast<Options*>(user_data);
Options* opts = static_cast<Options*>(user_data);
sunrealtype* ydata = N_VGetArrayPointer(y);
sunrealtype* ydotdata = N_VGetArrayPointer(ydot);
const sunrealtype u = ydata[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ int main(int argc, char* argv[])
scontrol_Tol = SUNAdaptController_ImExGus(sunctx);
if (check_ptr((void*)scontrol_Tol, "SUNAdaptController_ImExGus (slow Tol)"))
return 1;
scontrol = SUNAdaptController_MRIHTol(scontrol_H, scontrol_Tolsunctx);
scontrol = SUNAdaptController_MRIHTol(scontrol_H, scontrol_Tol,sunctx);
if (check_ptr((void*)scontrol, "SUNAdaptController_MRIHTol")) return 1;
if (std::min(opts.htol_relch, std::min(opts.htol_minfac, opts.htol_maxfac)) >
-1)
Expand Down

0 comments on commit b64f62f

Please sign in to comment.