SpECTRE  v2024.06.05
amr::Criteria::Persson< Dim, TensorTags > Class Template Reference

h-refine the grid based on power in the highest modes More...

#include <Persson.hpp>

Classes

struct  AbsoluteTolerance
 
struct  CoarseningFactor
 
struct  Exponent
 
struct  NumHighestModes
 
struct  VariablesToMonitor
 

Public Types

using options = tmpl::list< VariablesToMonitor, NumHighestModes, Exponent, AbsoluteTolerance, CoarseningFactor >
 
using compute_tags_for_observation_box = tmpl::list<>
 
using argument_tags = tmpl::list<::Tags::DataBox >
 

Public Member Functions

 Persson (std::vector< std::string > vars_to_monitor, const size_t num_highest_modes, double alpha, double absolute_tolerance, double coarsening_factor, const Options::Context &context={})
 
template<typename DbTagsList , typename Metavariables >
std::array< Flag, Dim > operator() (const db::DataBox< DbTagsList > &box, Parallel::GlobalCache< Metavariables > &cache, const ElementId< Dim > &element_id) const
 
void pup (PUP::er &p) override
 
- Public Member Functions inherited from amr::Criterion
 Criterion (CkMigrateMessage *msg)
 
 WRAPPED_PUPable_abstract (Criterion)
 
template<typename ComputeTagsList , typename DataBoxType , typename Metavariables >
auto evaluate (const ObservationBox< ComputeTagsList, DataBoxType > &box, Parallel::GlobalCache< Metavariables > &cache, const ElementId< Metavariables::volume_dim > &element_id) const
 Evaluates the AMR criteria by selecting the appropriate derived class and forwarding its argument_tags from the ObservationBox (along with the GlobalCache and ArrayIndex) to the call operator of the derived class. More...
 

Static Public Attributes

static constexpr Options::String help
 

Detailed Description

template<size_t Dim, typename TensorTags>
class amr::Criteria::Persson< Dim, TensorTags >

h-refine the grid based on power in the highest modes

See also
persson_smoothness_indicator

Member Data Documentation

◆ help

template<size_t Dim, typename TensorTags >
constexpr Options::String amr::Criteria::Persson< Dim, TensorTags >::help
staticconstexpr
Initial value:
= {
"Refine the grid so the power in the highest modes stays below the "
"tolerance"}

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