SpECTRE  v2025.08.19
ah::protocols::Callback Struct Reference

A protocol for a callback to a horizon find. More...

#include <Callback.hpp>

Classes

struct  test
 

Detailed Description

A protocol for a callback to a horizon find.

Details

Can be used in either horizon_find_callbacks or horizon_find_failure_callbacks in the ah::protocols::HorizonMetavars.

A struct conforming to the this protocol must have

  • An apply function with the signature in the example

A struct conforming to this protocol can also optionally specify

  • a type alias const_global_cache_tags that holds global cache tags.
struct ExampleHorizonFindCallback : tt::ConformsTo<::ah::protocols::Callback> {
template <typename DbTags, typename Metavariables>
static void apply(db::DataBox<DbTags>& /*box*/,
const FastFlow::Status status) {
const auto& functions_of_time =
Parallel::get<domain::Tags::FunctionsOfTime>(cache);
// Use these to run control system callbacks, observe quantities, or error
// if the horizon find failed.
(void)status;
(void)functions_of_time;
}
};
A Charm++ chare that caches global data once per Charm++ node.
Definition: GlobalCache.hpp:223
auto apply(F &&f, const ObservationBox< ComputeTagsList, DataBoxType > &observation_box, Args &&... args)
Apply the function object f using its nested argument_tags list of tags.
Definition: ObservationBox.hpp:241
Indicate a class conforms to the Protocol.
Definition: ProtocolHelpers.hpp:22

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