Skip to content

Commit

Permalink
update nls tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 committed Oct 23, 2023
1 parent 59f26ae commit f965076
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/arkode/C_serial/ark_conserved_exp_entropy_ark.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ int main(int argc, char* argv[])
flag = ARKStepSetTableName(arkode_mem, "ARKODE_ARK2_DIRK_3_1_2",
"ARKODE_ERK_NONE");
if (check_flag(flag, "ARKStepSetTableName")) return 1;

/* Tighten nonlinear solver tolerance */
flag = ARKStepSetNonlinConvCoef(arkode_mem, SUN_RCONST(0.01));
if (check_flag(flag, "ARKStepSetNonlinConvCoef")) return 1;
}

if (fixed_h > SUN_RCONST(0.0))
Expand Down
4 changes: 4 additions & 0 deletions examples/arkode/C_serial/ark_dissipated_exp_entropy.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ int main(int argc, char* argv[])
flag = ARKStepSetTableName(arkode_mem, "ARKODE_ARK2_DIRK_3_1_2",
"ARKODE_ERK_NONE");
if (check_flag(flag, "ARKStepSetTableName")) return 1;

/* Tighten nonlinear solver tolerance */
flag = ARKStepSetNonlinConvCoef(arkode_mem, SUN_RCONST(0.01));
if (check_flag(flag, "ARKStepSetNonlinConvCoef")) return 1;
}

if (fixed_h > SUN_RCONST(0.0))
Expand Down

0 comments on commit f965076

Please sign in to comment.