Skip to content

Commit ecef90e

Browse files
committed
WIP: Minor fixes
1 parent 0b84b88 commit ecef90e

4 files changed

Lines changed: 17 additions & 11 deletions

File tree

integration/VODE/vode_dvstep.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ int dvstep (BurnT& state, DvodeT& vstate)
309309

310310
}
311311

312+
#ifdef PHOTOCHEMISTRY
312313
for (int i = net_ienuc + 1; i <= int_neqs; i+=MicrophysicsNumRadVarsPerGroup) {
313314

314315
#ifdef STRANG
@@ -349,6 +350,7 @@ int dvstep (BurnT& state, DvodeT& vstate)
349350
break;
350351
}
351352
#endif
353+
#endif
352354

353355
#ifdef SDC
354356
// Abort the program. This is unimplemented

integration/_parameters

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@ burner_verbose bool 0
2323
# species and energy equations.
2424

2525
# relative tolerance for species
26-
rtol_spec real 1.e-12
26+
rtol_spec real 1.e-10
2727

2828
# relative tolerance for energy
29-
rtol_enuc real 1.e-6
29+
rtol_enuc real 1.e-10
3030

3131
# absolute tolerance for species
32-
atol_spec real 1.e-8
32+
atol_spec real 1.e-10
3333

3434
# absolute tolerance for energy
35-
atol_enuc real 1.e-6
35+
atol_enuc real 1.e-25
3636

37-
# relative tolerance for radiation density
38-
rtol_rad_num real 1.e-12
37+
# relative tolerance for radiation number density
38+
rtol_rad_num real 1.e-10
3939

40-
# relative teolerance for radiation flux
41-
rtol_rad_flux real 1.e-6
40+
# relative tolerance for radiation flux
41+
rtol_rad_flux real 1.e-10
4242

43-
# absolute tolerance for radiation density
44-
atol_rad_num real 1.e-12
43+
# absolute tolerance for radiation number density
44+
atol_rad_num real 1.e-10
4545

4646
# absolute tolerance for radiation flux
47-
atol_rad_flux real 1.e-6
47+
atol_rad_flux real 1.e-10
4848

4949
# Whether to renormalize the mass fractions at each step in the evolution
5050
# so that they sum to unity.

integration/integrator_data.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ constexpr int INT_NEQS = NumRadEqs + NumSpec + 1;
1515
// abundance is unreasonably small or large (each X must satisfy
1616
// -failure_tolerance <= X <= 1.0 + failure_tolerance).
1717
constexpr amrex::Real species_failure_tolerance = 1.e-2_rt;
18+
#ifdef PHOTOCHEMISTRY
1819
// We will use this parameter to determine if
1920
// a given radiation quantity (number density or flux) is
2021
// unreasonably small (each quantity must satisfy X >= -radiation_failure_tolerance).
2122
constexpr amrex::Real radiation_failure_tolerance = 1.e-2_rt;
23+
#endif
2224

2325
#ifdef NSE
2426
constexpr int MIN_NSE_BAILOUT_STEPS = 10;

integration/integrator_setup_strang.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,13 @@ void integrator_cleanup (IntegratorT& int_state, BurnT& state,
207207
}
208208
}
209209
}
210+
#ifdef PHOTOCHEMISTRY
210211
for (int n = net_ienuc+1; n <= net_ienuc+NumRadEqs; n += MicrophysicsNumRadVarsPerGroup) {
211212
if (int_state.y(n) < -radiation_failure_tolerance) {
212213
state.success = false;
213214
}
214215
}
216+
#endif
215217

216218
#ifndef AMREX_USE_GPU
217219
if (integrator_rp::burner_verbose) {

0 commit comments

Comments
 (0)