ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_SampleData.H File Reference
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <memory>
#include <AMReX_ParmParse.H>
#include <AMReX_MultiFab.H>
#include <AMReX_MultiFabUtil.H>
#include <AMReX_PlotFileUtil.H>
#include <AMReX_RealVect.H>
#include <ERF_IndexDefines.H>
#include <ERF_EOS.H>
#include <ERF_Container.H>
#include <ERF_DataStruct.H>
#include <ERF_LatLonMap.H>
#include <iostream>
Include dependency graph for ERF_SampleData.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LineSampler
 
struct  LineSampler::InterpPlan
 
struct  PlaneSampler
 

Functions

amrex::Real sampling_covered_value ()
 
int sampling_num_levels (const amrex::Vector< amrex::Vector< amrex::MultiFab >> &vars_new)
 

Function Documentation

◆ sampling_covered_value()

amrex::Real sampling_covered_value ( )
inline

The value line and plane sampling write at cells covered by immersed terrain (erf.sampling_covered_value)

32 {
33  amrex::Real value = amrex::Real(-9999.0);
34  amrex::ParmParse pp("erf");
35  pp.queryAdd("sampling_covered_value", value);
36  return value;
37 }
ParmParse pp("prob")
Here is the call graph for this function:

◆ sampling_num_levels()

int sampling_num_levels ( const amrex::Vector< amrex::Vector< amrex::MultiFab >> &  vars_new)
inline

The number of levels that exist, counted from level 0: vars_new holds a slot for every level up to amr.max_level, but the state of a level that has not been made is undefined

45 {
46  int nlev = 0;
47  while (nlev < static_cast<int>(vars_new.size()) &&
48  static_cast<int>(vars_new[nlev].size()) > Vars::cons &&
49  vars_new[nlev][Vars::cons].ok()) {
50  ++nlev;
51  }
52  return nlev;
53 }
@ cons
Definition: ERF_IndexDefines.H:231