SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
amr::Criteria::Loehner< Dim, TensorTags > Class Template Reference

h-refine the grid based on a smoothness indicator More...

#include <Loehner.hpp>

Classes

struct  AbsoluteTolerance
struct  CoarseningFactor
struct  RelativeTolerance
struct  VariablesToMonitor

Public Types

using options
using compute_tags_for_observation_box = tmpl::list<>
using argument_tags = tmpl::list<::Tags::DataBox>

Public Member Functions

 Loehner (std::vector< std::string > vars_to_monitor, double relative_tolerance, double absolute_tolerance, double coarsening_factor, const Options::Context &context={})
Type type () override
std::string observation_name () override
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.

Static Public Attributes

static constexpr Options::String help

Detailed Description

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

h-refine the grid based on a smoothness indicator

The smoothness indicator used here is based on the magnitude of second derivatives. See amr::Criteria::loehner_smoothness_indicator for details and caveats.

See also
amr::Criteria::loehner_smoothness_indicator

Member Typedef Documentation

◆ options

template<size_t Dim, typename TensorTags>
using amr::Criteria::Loehner< Dim, TensorTags >::options

Member Function Documentation

◆ observation_name()

template<size_t Dim, typename TensorTags>
std::string amr::Criteria::Loehner< Dim, TensorTags >::observation_name ( )
inlineoverridevirtual

Implements amr::Criterion.

◆ type()

template<size_t Dim, typename TensorTags>
Type amr::Criteria::Loehner< Dim, TensorTags >::type ( )
inlineoverridevirtual

Implements amr::Criterion.

Member Data Documentation

◆ help

template<size_t Dim, typename TensorTags>
Options::String amr::Criteria::Loehner< Dim, TensorTags >::help
staticconstexpr
Initial value:
= {
"Refine the grid towards resolving an estimated error in the second "
"derivative"}

The documentation for this class was generated from the following file:
  • src/ParallelAlgorithms/Amr/Criteria/Loehner.hpp