Skip to content

Commit

Permalink
fix some compilation issues in subchandra
Browse files Browse the repository at this point in the history
for some reason, these only show up in TRUE_SDC mode
  • Loading branch information
zingale committed Sep 20, 2023
1 parent a02f2dc commit 6f45cbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Exec/science/subchandra/problem_initialize_state_data.H
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <network.H>
#include <model_parser.H>
#include <ambient.H>
#include <burn_type.H>

AMREX_GPU_HOST_DEVICE AMREX_INLINE
void problem_initialize_state_data (int i, int j, int k,
Expand Down Expand Up @@ -34,7 +35,7 @@ void problem_initialize_state_data (int i, int j, int k,
state(i,j,k,UTEMP) = interpolate(dist, model::itemp);
Real sumX{0.0_rt};
for (int n = 0; n < NumSpec; ++n) {
state(i,j,k,UFS+n) = amrex::min(1.0_rt, amrex::max(interpolate(dist, model::ispec+n), small_x));
state(i,j,k,UFS+n) = amrex::min(1.0_rt, amrex::max(interpolate(dist, model::ispec+n), network_rp::small_x));
sumX += state(i,j,k,UFS+n);
}

Expand Down

0 comments on commit 6f45cbb

Please sign in to comment.