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 Realprob_lo = geom.ProbLo()
 
const auto dx = geom.CellSize()
 

Function Documentation

◆ for()

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

Variable Documentation

◆ dx

const auto dx = geom.CellSize()

Referenced by for().

◆ prob_lo

const Real* prob_lo = geom.ProbLo()

Referenced by for().