ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_UpdateWSubsidence_RICO.H
Go to the documentation of this file.
1 
2  ParmParse pp_prob("prob");
3 
4  // RICO: wbar decreases linearly up to 2260 m and is held constant above,
5  // continuous at the cutoff
6  Real wbar_cutoff_max = amrex::Real(2260.0); pp_prob.query("wbar_cutoff_max", wbar_cutoff_max);
7 
8  wbar[0] = zero;
9  for (int k = 1; k <= khi+1; k++) {
10  const Real z = zlevels[k];
11  if (z <= wbar_cutoff_max) {
12  wbar[k] = -amrex::Real(0.0000022)*z;
13  } else {
14  wbar[k] = -amrex::Real(0.0000022)*wbar_cutoff_max;
15  }
16  }
17 
18  amrex::Gpu::copy(amrex::Gpu::hostToDevice, wbar.begin(), wbar.end(), d_wbar.begin());
const int khi
Definition: ERF_InitCustomPert_Bubble.H:25
constexpr amrex::Real zero
Definition: ERF_NumericalConstants.H:36
wbar[0]
Definition: ERF_UpdateWSubsidence_RICO.H:8
Real wbar_cutoff_max
Definition: ERF_UpdateWSubsidence_RICO.H:6
ParmParse pp_prob("prob")