13#include "libmesh/petsc_vector.h"
14#include "libmesh/petsc_matrix.h"
43 virtual void execute()
override;
56 const NumericVector<Number> &
getSnapshot(
unsigned int local_i)
const;
void dataLoad(std::istream &stream, SnapshotContainerBase::Snapshots &v, void *context)
void dataStore(std::ostream &stream, SnapshotContainerBase::Snapshots &v, void *context)
const InputParameters & parameters() const
Storage for the snapshots.
Base class for storing and managing numerical data like solutions, residuals, and Jacobians.
virtual void execute() override
virtual void initialize() override
const Snapshots & getSnapshots() const
Return the whole snapshot container.
static InputParameters validParams()
virtual void finalize() override
Snapshots & _accumulated_data
Dynamic container for snapshot vectors.
const unsigned int _nonlinear_system_number
The nonlinear system's number whose solution shall be collected.
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