ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
TagCondition Struct Reference

#include <ERF_RefinementCriterion.H>

Collaboration diagram for TagCondition:

Public Types

enum class  Test { Greater , Less , AdjacentDifferenceGreater }
 

Public Member Functions

amrex::Real threshold (int lev) const
 

Public Attributes

std::string field
 
Test test = Test::Greater
 
amrex::Vector< amrex::Real > values
 

Detailed Description

One test in a refinement criterion: a field compared against a threshold that may differ by level

Member Enumeration Documentation

◆ Test

enum TagCondition::Test
strong
Enumerator
Greater 
Less 
AdjacentDifferenceGreater 
17 { Greater, Less, AdjacentDifferenceGreater };

Member Function Documentation

◆ threshold()

amrex::Real TagCondition::threshold ( int  lev) const
inline
25  {
26  return values[std::min(lev, static_cast<int>(values.size())-1)];
27  }
amrex::Vector< amrex::Real > values
Definition: ERF_RefinementCriterion.H:23

Member Data Documentation

◆ field

std::string TagCondition::field

◆ test

Test TagCondition::test = Test::Greater

◆ values

amrex::Vector<amrex::Real> TagCondition::values

Referenced by threshold().


The documentation for this struct was generated from the following file: