SpECTRE  v2024.04.12
amr::Actions::RunAmrDiagnostics Struct Reference

Use the AMR diagnostics gathered from all of the Elements. More...

#include <RunAmrDiagnostics.hpp>

Public Types

using const_global_cache_tags = tmpl::list< logging::Tags::Verbosity< amr::OptionTags::AmrGroup > >
 

Static Public Member Functions

template<typename ParallelComponent , typename DbTagList , typename Metavariables , typename ArrayIndex >
static void apply (db::DataBox< DbTagList > &box, const Parallel::GlobalCache< Metavariables > &, const ArrayIndex &, const boost::rational< size_t > &volume, const size_t number_of_elements, const size_t number_of_grid_points, const std::vector< double > &avg_refinement_levels_by_dim, const std::vector< double > &avg_extents_by_dim)
 

Detailed Description

Use the AMR diagnostics gathered from all of the Elements.

Checks the following:

  • That the fraction of Block volume (in the logical coordinate frame) covered by all Elements is equal to the number of Blocks in the Domain

Prints the following (as integers):

  • The number of elements
  • The number of grid points
  • The average refinement level by logical dimension (i.e. not by the physical dimensions)
  • The average number of grid points by logical dimension

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