Abstract base class for storage and retrieval of generalized harmonic quantities communicated from a Cauchy simulation to the Cce system.
More...
Abstract base class for storage and retrieval of generalized harmonic quantities communicated from a Cauchy simulation to the Cce system.
Details
The functions that are required to be overriden in the derived classes are:
GhInterfaceManager::get_clone()
: should return a std::unique_ptr<GhInterfaceManager>
with cloned state.
GhInterfaceManager::insert_gh_data()
: should store the portions of the provided generalized harmonic data that are required to provide useful boundary values for the CCE evolution at requested timesteps.
GhInterfaceManager::request_gh_data()
: should register requests from the CCE evolution for boundary data.
GhInterfaceManager::retrieve_and_remove_first_ready_gh_data()
: should return a std::optional<std::tuple<TimeStepId, tnsr::aa<DataVector, 3>, tnsr::iaa<DataVector, 3>, tnsr::aa<DataVector, 3>>>
containing the boundary data associated with the oldest requested timestep if enough data has been supplied via insert_gh_data()
to determine the boundary data. Otherwise, return a std::nullopt
to indicate that the CCE system must continue waiting for generalized harmonic input.
GhInterfaceManager::number_of_pending_requests()
: should return the number of requests that have been registered to the class that do not yet been retrieved via retrieve_and_remove_first_ready_gh_data()
.
GhInterfaceManager::number_of_gh_times()
: should return the number of time steps sent to insert_gh_data()
that have not yet been retrieved via retrieve_and_remove_first_ready_gh_data()
.