Skip to content

Commit be8199b

Browse files
author
matejmalik
committed
fixed last commit
1 parent 815857a commit be8199b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/kernels.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3182,7 +3182,7 @@ __device__ utype calc_index_h2o(
31823182
utype dens = f_h2o * press * mass_h2o / (KBOLTZMANN * temp);
31833183

31843184
utype lamda = wave / 0.589e-4;
3185-
utype delta = max(1.0, dens) / 1.0; // limiting to valid range, otherwise index may return NaN (this only affects atmospheric regions with at least around 1000 bar)
3185+
utype delta = min(1.0, dens) / 1.0; // limiting to valid range, otherwise index may return NaN (this only affects atmospheric regions with at least around 1000 bar)
31863186
utype theta = temp / 273.15;
31873187

31883188
utype lamda_UV = 0.229202;

0 commit comments

Comments
 (0)