|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_TerrainMetrics.H>#include <ERF_Utils.H>#include <AMReX_ParmParse.H>#include <ERF_Constants.H>#include <ERF_Interpolation_1D.H>#include <cmath>
Functions | |
| void | init_zlevels (Vector< Vector< Real >> &zlevels_stag, Vector< Vector< Real >> &stretched_dz_h, Vector< Gpu::DeviceVector< Real >> &stretched_dz_d, Vector< Geometry > const &geom, Vector< IntVect > const &ref_ratio, const Real grid_stretching_ratio, const Real zsurf, const Real dz0) |
| void | update_stretched_dz (int lev, Vector< Vector< Real >> const &zlevels_stag, Vector< Vector< Real >> &stretched_dz_h, Vector< Gpu::DeviceVector< Real >> &stretched_dz_d) |
| void init_zlevels | ( | Vector< Vector< Real >> & | zlevels_stag, |
| Vector< Vector< Real >> & | stretched_dz_h, | ||
| Vector< Gpu::DeviceVector< Real >> & | stretched_dz_d, | ||
| Vector< Geometry > const & | geom, | ||
| Vector< IntVect > const & | ref_ratio, | ||
| const Real | grid_stretching_ratio, | ||
| const Real | zsurf, | ||
| const Real | dz0 | ||
| ) |
Initialize staggered z-levels and grid spacing for all levels.
| [out] | zlevels_stag | Staggered z-level coordinates. |
| [out] | stretched_dz_h | Host-side cell heights in z. |
| [out] | stretched_dz_d | Device-side cell heights in z. |
| [in] | geom | Geometry describing the domain. |
| [in] | ref_ratio | Refinement ratios between levels. |
| [in] | grid_stretching_ratio | Ratio used for stretching the vertical grid. |
| [in] | zsurf | Height of the surface. |
| [in] | dz0 | Initial cell height at the surface. |
Referenced by ERF::ERF_shared().


| void update_stretched_dz | ( | int | lev, |
| Vector< Vector< Real >> const & | zlevels_stag, | ||
| Vector< Vector< Real >> & | stretched_dz_h, | ||
| Vector< Gpu::DeviceVector< Real >> & | stretched_dz_d | ||
| ) |
Re-derive the cell heights at one level from the nominal staggered z-levels.
| [in] | lev | Level index. |
| [in] | zlevels_stag | Staggered z-level coordinates. |
| [out] | stretched_dz_h | Host-side cell heights in z. |
| [out] | stretched_dz_d | Device-side cell heights in z. |
Referenced by ERF::ReadCheckpointFile().

