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>& ,
const FastFlow::Status status) {
const auto& functions_of_time =
Parallel::get<domain::Tags::FunctionsOfTime>(cache);
(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