SpECTRE
v2024.09.29
|
Updates several FunctionOfTimes in the global cache at once. Intended to be used in Parallel::mutate. More...
#include <UpdateFunctionOfTime.hpp>
Static Public Member Functions | |
static void | apply (gsl::not_null< std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > > * > f_of_t_list, double update_time, const std::unordered_map< std::string, std::pair< DataVector, double > > &update_args) |
Updates several FunctionOfTimes in the global cache at once. Intended to be used in Parallel::mutate.
All functions of time are updated at the same update_time
. For the update_args
, the keys of the map are the names of the functions of time. The value std::pair<DataVector, double>
for each key is the updated derivative for the function of time and the new expiration time, respectively.