Skip to content

Commit

Permalink
Only write into lsm flux if we have a valid array4. (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored Feb 1, 2024
1 parent c92785e commit f2184e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/BoundaryConditions/ABLMost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ ABLMost::compute_most_bcs (const int& lev,
dest_arr);

int is_land = (lmask_arr) ? lmask_arr(i,j,zlo) : 1;
if (is_land && vbx.contains(i,j,k)) {
if (is_land && lsm_flux_arr && vbx.contains(i,j,k)) {
lsm_flux_arr(i,j,zlo) = Tflux;
}
});
Expand Down

0 comments on commit f2184e1

Please sign in to comment.