|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <AMReX_Array.H>#include <AMReX_Array4.H>#include <AMReX_Geometry.H>#include <AMReX_MultiFab.H>#include <AMReX_GpuQualifiers.H>#include <AMReX_Extension.H>#include <AMReX_Math.H>#include <AMReX_REAL.H>#include <AMReX_Vector.H>#include "ERF_TerrainDiffusionLimits.H"#include <cmath>#include <string>#include <AMReX_Print.H>#include <sstream>#include <type_traits>

Go to the source code of this file.
Classes | |
| struct | erf_terrain_file::HeightTable |
Namespaces | |
| erf_terrain_file | |
Functions | |
| template<typename T > | |
| T | erf_get_single_value (std::istream &is, int n, const std::string &fname) |
| const HeightTable & | erf_terrain_file::ReadHeightTable (const std::string &fname, bool is_usgs, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &prob_lo, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &prob_hi, bool require_domain_coverage=true) |
| std::string | erf_terrain_file::TableProblem (bool is_usgs, int nx, int ny, const amrex::Vector< amrex::Real > &x, const amrex::Vector< amrex::Real > &y, const amrex::Vector< amrex::Real > &z, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &prob_lo, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &prob_hi, bool require_domain_coverage=true) |
| std::string | erf_terrain_file::TableSummary (const std::string &fname, bool is_usgs, int nx, int ny, const amrex::Vector< amrex::Real > &x, const amrex::Vector< amrex::Real > &y, const amrex::Vector< amrex::Real > &z) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_terrain_file::CellTerrainSlope (int i, int j, int k, const amrex::Array4< const amrex::Real > &z_nd, amrex::Real mfx, amrex::Real mfy, amrex::Real dxinv, amrex::Real dyinv) noexcept |
| amrex::Array< amrex::Real, 4 > | erf_terrain_file::FaceBandSlopes (const amrex::MultiFab &z_phys_nd, const amrex::MultiFab &mf_mx, const amrex::MultiFab &mf_my, const amrex::Geometry &geom, int band) |
| std::string | erf_terrain_file::OpenFaceSlopeWarning (int lev, int band, const amrex::Array< amrex::Real, 4 > &slopes, const amrex::Array< bool, 4 > &open, const amrex::Array< std::string, 4 > &bc_names) |
Variables | |
| constexpr amrex::Real | erf_terrain_file::open_face_slope_warn = amrex::Real(0.3) |
Checks of the height tables read from erf.terrain_file_name, erf.terrain_file_name_USGS and erf.buildings_file_name (ProblemBase::read_custom_terrain), a start-up summary of each table, and the warning for steep terrain next to an inflow or outflow face.
Table layouts:
| T erf_get_single_value | ( | std::istream & | is, |
| int | n, | ||
| const std::string & | fname | ||
| ) |
Read one number from line n of a text file that holds one number per line. Aborts, naming the file and the line, on a line that is missing, is not a number (a whole number for T = int), or has text after the number.