Skip to content

Commit 461079b

Browse files
committed
update interface
1 parent 1acb93d commit 461079b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

integration/RKC/actual_integrator.H

+15-1
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,28 @@
1313

1414
template <typename BurnT>
1515
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
16-
void actual_integrator (BurnT& state, Real dt)
16+
void actual_integrator (BurnT& state, Real dt, bool is_retry=false)
1717
{
1818
constexpr int int_neqs = integrator_neqs<BurnT>();
1919

2020
rkc_t<int_neqs> rkc_state{};
2121

2222
// Set the tolerances.
2323

24+
if (!is_retry) {
25+
rkc_state.atol_spec = atol_spec; // mass fractions
26+
rkc_state.atol_enuc = atol_enuc; // energy generated
27+
28+
rkc_state.rtol_spec = rtol_spec; // mass fractions
29+
rkc_state.rtol_enuc = rtol_enuc; // energy generated
30+
} else {
31+
rkc_state.atol_spec = retry_atol_spec; // mass fractions
32+
rkc_state.atol_enuc = retry_atol_enuc; // energy generated
33+
34+
rkc_state.rtol_spec = retry_rtol_spec; // mass fractions
35+
rkc_state.rtol_enuc = retry_rtol_enuc; // energy generated
36+
}
37+
2438
rkc_state.atol_spec = atol_spec; // mass fractions
2539
rkc_state.atol_enuc = atol_enuc; // energy generated
2640

0 commit comments

Comments
 (0)