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  Real wbar_cutoff_max = 1500.0; pp_prob.query("wbar_cutoff_max", wbar_cutoff_max);
5 
6  wbar[0] = 0.0;
7  for (int k = 1; k <= khi+1; k++) {
8  const Real z = zlevels[k];
9  if (z <= wbar_cutoff_max) {
10  wbar[k] = -0.0000022*z;
11  } else {
12  wbar[k] = -0.0000022*2260.;
13  }
14  }
15 
16  amrex::Gpu::copy(amrex::Gpu::hostToDevice, wbar.begin(), wbar.end(), d_wbar.begin());
const int khi
Definition: ERF_InitCustomPert_Bubble.H:21
amrex::Real Real
Definition: ERF_ShocInterface.H:19
wbar[0]
Definition: ERF_UpdateWSubsidence_RICO.H:6
Real wbar_cutoff_max
Definition: ERF_UpdateWSubsidence_RICO.H:4
ParmParse pp_prob("prob")