SpECTRE  v2024.09.29
amr::Limits Class Reference

The limits on refinement level and resolution for AMR. More...

#include <Limits.hpp>

Classes

struct  ErrorBeyondLimits
 Whether the code should error if EnforcePolicies has to prevent refinement from going beyond the given limits. More...
 
struct  NumGridPoints
 Inclusive bounds on the number of grid points per dimension. More...
 
struct  RefinementLevel
 Inclusive bounds on the refinement level. More...
 

Public Types

using options = tmpl::list< RefinementLevel, NumGridPoints, ErrorBeyondLimits >
 

Public Member Functions

 Limits (const std::optional< std::array< size_t, 2 > > &refinement_level_bounds, const std::optional< std::array< size_t, 2 > > &resolution_bounds, bool error_beyond_limits, const Options::Context &context={})
 
 Limits (size_t minimum_refinement_level, size_t maximum_refinement_level, size_t minimum_resolution, size_t maximum_resolution)
 
size_t minimum_refinement_level () const
 
size_t maximum_refinement_level () const
 
size_t minimum_resolution () const
 
size_t maximum_resolution () const
 
bool error_beyond_limits () const
 
void pup (PUP::er &p)
 

Static Public Attributes

static constexpr Options::String help
 

Detailed Description

The limits on refinement level and resolution for AMR.

Details

Member Data Documentation

◆ help

constexpr Options::String amr::Limits::help
staticconstexpr
Initial value:
= {
"Limits on refinement level and resolution for adaptive mesh "
"refinement."}

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