50 if (z_phys_nd ==
nullptr) {
51 fire_col_ground.setVal(geom_atm.ProbLo(2));
57 const int atm_nlo_x =
fg.atm_lo[0];
58 const int atm_nlo_y =
fg.atm_lo[1];
60 for (MFIter mfi(fire_col_ground, TilingIfNotGPU()); mfi.isValid(); ++mfi) {
61 const Box& bx = mfi.tilebox();
62 Array4<Real> zg = fire_col_ground.array(mfi);
63 Array4<const Real> z_nd = z_phys_nd->array(mfi);
65 ParallelFor(bx, [=] AMREX_GPU_DEVICE (
const IntVect& iv) {
66 const int i_f = iv[0];
67 const int j_f = iv[1];
72 const int i0 =
static_cast<int>(std::floor(gx));
73 const int j0 =
static_cast<int>(std::floor(gy));
75 for (
int c = 0; c < 4; ++c) {
76 const int ia = i0 + (c & 1);
77 const int ja = j0 + ((c >> 1) & 1);
80 const int i_n = ia + atm_nlo_x;
81 const int j_n = ja + atm_nlo_y;
83 zg(i_f, j_f, 0, c) =
Real(0.25) * (z_nd(i_n, j_n, 0)
84 + z_nd(i_n + 1, j_n, 0)
85 + z_nd(i_n, j_n + 1, 0)
86 + z_nd(i_n + 1, j_n + 1, 0));
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);})
amrex::Real Real
Definition: ERF_ShocInterface.H:19
@ fg
Definition: ERF_AdvanceMorrison.cpp:111