REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticHMix_ParticlesOverSeamount.H
Go to the documentation of this file.
1 for ( MFIter mfi((mf_visc2_p), TilingIfNotGPU()); mfi.isValid(); ++mfi )
2 {
3 Array4<Real> const& visc2_p = (mf_visc2_p).array(mfi);
4 Array4<Real> const& visc2_r = (mf_visc2_r).array(mfi);
5 Array4<Real> const& diff2 = mf_diff2.array(mfi);
6 Box bx = mfi.tilebox();
7 bx.grow(IntVect(NGROW,NGROW,0));
8 Gpu::streamSynchronize();
9
10 int ncomp = mf_diff2.nComp();
11
12 ParallelFor(makeSlab(bx,2,0), [=] AMREX_GPU_DEVICE (int i, int j, int )
13 {
14 visc2_p(i,j,0) = 5.0_rt;
15 visc2_r(i,j,0) = 5.0_rt;
16
17 for (int n = 0; n < ncomp; n++) {
18 diff2(i,j,0,n) = 0.0_rt;
19 }
20 });
21 }
#define NGROW