Commit 461079b 1 parent 1acb93d commit 461079b Copy full SHA for 461079b
File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
template <typename BurnT>
15
15
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 )
17
17
{
18
18
constexpr int int_neqs = integrator_neqs<BurnT>();
19
19
20
20
rkc_t <int_neqs> rkc_state{};
21
21
22
22
// Set the tolerances.
23
23
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
+
24
38
rkc_state.atol_spec = atol_spec; // mass fractions
25
39
rkc_state.atol_enuc = atol_enuc; // energy generated
26
40
You can’t perform that action at this time.
0 commit comments