ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_UpdateWSubsidence_SineMassFlux.H File Reference

Go to the source code of this file.

Functions

Gpu::DeviceVector< Realrho_d (khi+1, zero)
 
 for (MFIter mfi(state, TilingIfNotGPU());mfi.isValid();++mfi)
 
Vector< Realrho_h (khi+1, zero)
 
 for (int k=0;k<=khi;k++)
 
Vector< Realrho_stag (khi+2, zero)
 

Variables

auto rho_arr = rho_d.data()
 
const Real inv_ncell_xy = one / static_cast<Real>(dom.length(0)*dom.length(1))
 
 rho_stag [0] = amrex::Real(1.5)*rho_h[0] - myhalf*rho_h[1]
 

Function Documentation

◆ for() [1/2]

for ( int  k = 0; k <= khi; k++)
18 { rho_h[k] *= inv_ncell_xy; }
Vector< Real > rho_h(khi+1, zero)
const Real inv_ncell_xy
Definition: ERF_UpdateWSubsidence_SineMassFlux.H:17
Here is the call graph for this function:

◆ for() [2/2]

for ( MFIter mfi(state, TilingIfNotGPU());mfi.isValid();++  mfi)
4  {
5  const auto &box = mfi.tilebox();
6  auto state_arr = state.const_array(mfi);
7  ParallelFor(box, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
8  Gpu::Atomic::AddNoRet(&rho_arr[k], state_arr(i, j, k, Rho_comp));
9  });
10  }
#define Rho_comp
Definition: ERF_IndexDefines.H:36
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);})
auto rho_arr
Definition: ERF_UpdateWSubsidence_SineMassFlux.H:3
Here is the call graph for this function:

◆ rho_d()

Gpu::DeviceVector<Real> rho_d ( khi 1,
zero   
)

Referenced by SAM::Compute_Coefficients(), and ERF::FillForecastStateMultiFabs().

Here is the caller graph for this function:

◆ rho_h()

Vector<Real> rho_h ( khi 1,
zero   
)

Referenced by SAM::Compute_Coefficients(), ERF::FillForecastStateMultiFabs(), for(), and ReadCustomBinaryIC().

Here is the caller graph for this function:

◆ rho_stag()

Vector<Real> rho_stag ( khi 2,
zero   
)

Variable Documentation

◆ inv_ncell_xy

const Real inv_ncell_xy = one / static_cast<Real>(dom.length(0)*dom.length(1))

Referenced by for().

◆ rho_arr

◆ rho_stag

rho_stag[khi+1] = amrex::Real(1.5)*rho_h[0] - myhalf*rho_h[1]