Skip to content

Commit

Permalink
modify bounds checkings (AMReX-Combustion#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjge authored Apr 19, 2024
1 parent 80f2cfa commit 6c1a06e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Radiation/SpectralModels.H
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interpT(amrex::Real const& T, int& TindexL, amrex::Real& weight)
return;
}
if (T > 2800) {
TindexL = 125;
TindexL = 124;
weight = 1.0;
return;
}
Expand Down Expand Up @@ -58,6 +58,11 @@ getRadPropGas(
amrex::GpuArray<amrex::Real, 126UL> const& kdatah2o,
amrex::GpuArray<amrex::Real, 126UL> const& kdataco)
{
if (
yco2(i, j, k) < 1.0e-5 && yh2o(i, j, k) < 1.0e-5 && yco(i, j, k) < 1.0e-5) {
absc(i, j, k) = 0.001;
return;
}
int TindexL = 0;
amrex::Real weight = 1.0;
interpT(temp(i, j, k), TindexL, weight);
Expand Down

0 comments on commit 6c1a06e

Please sign in to comment.