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

Send AMR diagnostics about Elements to amr::Component. More...

#include <SendAmrDiagnostics.hpp>

Public Types

using const_global_cache_tags = tmpl::list< logging::Tags::Verbosity< amr::OptionTags::AmrGroup > >
 
using ReductionData = Parallel::ReductionData< Parallel::ReductionDatum< boost::rational< size_t >, funcl::Plus<> >, Parallel::ReductionDatum< size_t, funcl::Plus<> >, Parallel::ReductionDatum< size_t, funcl::Plus<> >, Parallel::ReductionDatum< std::vector< double >, funcl::ElementWise< funcl::Plus<> >, funcl::ElementWise< funcl::Divides<> >, std::index_sequence< 1 > >, Parallel::ReductionDatum< std::vector< double >, funcl::ElementWise< funcl::Plus<> >, funcl::ElementWise< funcl::Divides<> >, std::index_sequence< 1 > > >
 

Static Public Member Functions

template<typename DbTagList , typename... InboxTags, typename Metavariables , size_t Dim, typename ActionList , typename ParallelComponent >
static Parallel::iterable_action_return_t apply (db::DataBox< DbTagList > &box, tuples::TaggedTuple< InboxTags... > &, const Parallel::GlobalCache< Metavariables > &cache, const ElementId< Dim > &element_id, const ActionList, const ParallelComponent *)
 

Detailed Description

Send AMR diagnostics about Elements to amr::Component.

Sends the following:

  • The fraction of a Block volume (in the logical coordinate frame) covered by the Element
  • One, in order to count the number of Elements
  • The number of grid points
  • The refinement level in each logical dimension
  • The number of grid points in each logical dimension

The information is sent to amr::Component which runs the action amr::Actions::RunAmrDiagnostics after all Elements have contributed to the reduction


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