SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
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 Parallel::GlobalCache<Metavariables>& cache,
const FastFlow::Status status) {
const auto& functions_of_time =
// Use these to run control system callbacks, observe quantities, or error
// if the horizon find failed.
(void)status;
(void)functions_of_time;
}
};

The documentation for this struct was generated from the following file:
  • src/ParallelAlgorithms/ApparentHorizonFinder/Protocols/Callback.hpp