SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
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

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 size_t grid_index, 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

Member Typedef Documentation

◆ const_global_cache_tags

using amr::Actions::RunAmrDiagnostics::const_global_cache_tags
Initial value:
tmpl::list<logging::Tags::Verbosity<amr::OptionTags::AmrGroup>>

The documentation for this struct was generated from the following file:
  • src/ParallelAlgorithms/Amr/Actions/RunAmrDiagnostics.hpp