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

Go to the source code of this file.

Functions

 for (int k=0;k<=khi;k++)
 

Variables

const auto dx = geom.CellSize()
 

Function Documentation

◆ for()

for ( int  k = 0; k <= khi; k++)
3  {
4  const Real z_cc = (z_phys_cc) ? zlevels[k] : (k+0.5)*dx[2];
5  Real f_a[12] = {-1.27239999e-41, 1.11717520e-36, -4.33415278e-32, 9.86488742e-28,
6  -1.46662495e-23, 1.47887323e-19, -9.96258532e-16, 4.17832623e-12,
7  -9.41191724e-09, 8.63378170e-06, -4.29197266e-03, -8.18730365e-01};
8  Real u_geo_wind = f_a[0];
9  for (int ind = 1; ind < 12; ++ind) {
10  u_geo_wind = u_geo_wind * z_cc + f_a[ind];
11  }
12  u_geos[k] = u_geo_wind;
13  v_geos[k] = 0.0;
14  }
amrex::Real Real
Definition: ERF_ShocInterface.H:19
const auto dx
Definition: ERF_UpdateGeostrophicProfile_GATE.H:1

Variable Documentation

◆ dx

const auto dx = geom.CellSize()

Referenced by for().