ASPECT
|
Static Public Member Functions | |
static void | declare_parameters (ParameterHandler &prm) |
static void | register_termination_criterion (const std::string &name, const std::string &description, void(*declare_parameters_function)(ParameterHandler &), std::unique_ptr< Interface< dim >>(*factory_function)()) |
static void | write_plugin_graph (std::ostream &output_stream) |
Static Public Member Functions inherited from aspect::Plugins::InterfaceBase | |
static void | declare_parameters (ParameterHandler &prm) |
Static Public Member Functions inherited from aspect::SimulatorAccess< dim > | |
static void | get_composition_values_at_q_point (const std::vector< std::vector< double >> &composition_values, const unsigned int q, std::vector< double > &composition_values_at_q_point) |
Additional Inherited Members | |
Protected Attributes inherited from aspect::Plugins::ManagerBase< Interface< dim > > | |
std::list< std::unique_ptr< Interface< dim > > > | plugin_objects |
std::vector< std::string > | plugin_names |
A class that manages all objects that provide functionality to specify termination criteria.
Definition at line 115 of file interface.h.
|
virtual |
Execute all of the termination criteria objects that have been requested in the input file.
The function returns a bool indicating whether the simulation should be terminated.
To avoid undefined situations, this function only requires that a single processor's termination request comes back positive for a given plugin. In other words, for each plugin selected, not all processors need to return the same value: if only one of the says that the simulation should be terminated, then this is enough.
double aspect::TerminationCriteria::Manager< dim >::check_for_last_time_step | ( | const double | time_step | ) | const |
Check all of the termination criteria objects that have been requested in the input file for criteria regarding last time step and if so get the minimum of these values.
|
static |
Declare the parameters of all known termination criteria plugins, as well as of ones this class has itself.
|
overridevirtual |
Read the parameters this class declares from the parameter file. This determines which termination criteria objects will be created; then let these objects read their parameters as well.
Reimplemented from aspect::Plugins::InterfaceBase.
|
static |
A function that is used to register termination criteria objects in such a way that the Manager can deal with all of them without having to know them by name. This allows the files in which individual plugins are implement to register these plugins, rather than also having to modify the Manager class by adding the new termination criteria class.
name | The name under which this plugin is to be called in parameter files. |
description | A text description of what this model does and that will be listed in the documentation of the parameter file. |
declare_parameters_function | A pointer to a function that declares the parameters for this plugin. |
factory_function | A pointer to a function that creates such a termination criterion object and returns a pointer to it. |
|
static |
For the current plugin subsystem, write a connection graph of all of the plugins we know about, in the format that the programs dot and neato understand. This allows for a visualization of how all of the plugins that ASPECT knows about are interconnected, and connect to other parts of the ASPECT code.
output_stream | The stream to write the output to. |
aspect::TerminationCriteria::Manager< dim >::DeclException1 | ( | ExcTerminationCriteriaNameNotFound | , |
std::string | |||
) |
Exception.