ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
erf_checkpoint_landmask Namespace Reference

Functions

void restore_coarse_building_landmask (amrex::iMultiFab &mask)
 

Function Documentation

◆ restore_coarse_building_landmask()

void erf_checkpoint_landmask::restore_coarse_building_landmask ( amrex::iMultiFab &  mask)
inline
13 {
14  for (amrex::MFIter mfi(mask); mfi.isValid(); ++mfi) {
15  const auto arr = mask.array(mfi);
16  amrex::ParallelFor(mfi.fabbox(), [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
17  if (arr(i,j,k) == 2) { arr(i,j,k) = 1; }
18  });
19  }
20 }
ParallelFor(fab_box, [=] AMREX_GPU_DEVICE(int i, int j, int k) { qrcuten_arr(i, j, k)=Real(0);qscuten_arr(i, j, k)=Real(0);qicuten_arr(i, j, k)=Real(0);})

Referenced by ERF::ReadCheckpointFile().

Here is the call graph for this function:
Here is the caller graph for this function: