17 params.
addParam<NonlinearSystemName>(
18 "nonlinear_system_name",
20 "Option to select which nonlinear system's solution shall be stored.");
27 declareRestartableDataWithContext<
Snapshots>(
"accumulated_snapshots", (void *)&comm())),
28 _nonlinear_system_number(
29 _fe_problem.nlSysNum(getParam<NonlinearSystemName>(
"nonlinear_system_name")))
39const NumericVector<Number> &
44 ") solutions so we cannot find any with index (" + std::to_string(local_i) +
void storeHelper(std::ostream &stream, P &data, void *context)
void loadHelper(std::istream &stream, P &data, void *context)
void dataLoad(std::istream &stream, SnapshotContainerBase::Snapshots &v, void *context)
void dataStore(std::ostream &stream, SnapshotContainerBase::Snapshots &v, void *context)
static InputParameters validParams()
Storage for the snapshots.
virtual void execute() override
SnapshotContainerBase(const InputParameters ¶meters)
static InputParameters validParams()
Snapshots & _accumulated_data
Dynamic container for snapshot vectors.
virtual std::unique_ptr< NumericVector< Number > > collectSnapshot()=0
Clone the current snapshot vector.
const NumericVector< Number > & getSnapshot(unsigned int local_i) const
Return one of the stored snapshot vectors.
virtual void initialSetup() override
T & addPointer(std::unique_ptr< T > &&ptr)