ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ERF_ProbCommon.H File Reference
#include <AMReX_ParmParse.H>
#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
#include <AMReX_MultiFab.H>
#include "ERF_DataStruct.H"
#include "ERF_EOS.H"
#include "ERF_HSEUtils.H"
#include "ERF_TileNoZ.H"
Include dependency graph for ERF_ProbCommon.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ProbParmDefaults
 
class  ProblemBase
 

Functions

template<typename T >
erf_get_single_value (std::istream &is, int n)
 
std::unique_ptr< ProblemBaseamrex_probinit (const amrex_real *problo, const amrex_real *probhi) AMREX_ATTRIBUTE_WEAK
 

Function Documentation

◆ amrex_probinit()

std::unique_ptr<ProblemBase> amrex_probinit ( const amrex_real *  problo,
const amrex_real *  probhi 
)

Function to init the physical bounds of the domain and instantiate a Problem derived from ProblemBase

Referenced by ERF::ERF_shared().

Here is the caller graph for this function:

◆ erf_get_single_value()

template<typename T >
T erf_get_single_value ( std::istream &  is,
int  n 
)
21 {
22  T r = 0;
23  std::string line;
24  if (std::getline(is, line)) {
25  std::stringstream ss(line);
26  ss >> r;
27  if (ss.fail()) {
28  amrex::Abort("Failed to read");
29  }
30  if (ss >> r) {
31  amrex::Print() << "Trying to read line " << n << " in this file " << std::endl;
32  amrex::Abort("Wrong format: more than one number in this line");
33  }
34  } else {
35  amrex::Abort("Unable to read this line");
36  }
37  return r;
38 }
@ T
Definition: ERF_IndexDefines.H:110