WRApplication
External kratos "application" for multiscale time integration.
SnapshotManager Class Reference

Interface for Snapshot lifetime management. More...

Inheritance diagram for SnapshotManager:
Collaboration diagram for SnapshotManager:

Public Member Functions

None Add (self, KratosMultiphysics.ModelPart model_part)
 Construct a snapshot and add it to the internal journal. More...
 
"Snapshot" Get (self, WRApp.CheckpointID id)
 Retrieve a snapshot from the internal journal that matches the provided ID. More...
 
None Erase (self, WRApp.CheckpointID id)
 Erase an entry from the internal journal that matches the provided ID and delete its related snapshot. More...
 
None EraseObsolete (self)
 Call Manager.Erase on all IDs that return true for the provided predicate. More...
 
KratosMultiphysics.Parameters GetDefaultParameters (cls)
 

Detailed Description

Interface for Snapshot lifetime management.

@classname SnapshotManager

SnapshotManager supports adding, retrieving and erasing Snapshot s. Added (or discovered) snapshots are tracked via Journal, and erased based on the return value of a predicate (CheckpointID -> bool).

Member Function Documentation

◆ Add()

None Add (   self,
KratosMultiphysics.ModelPart  model_part 
)

Construct a snapshot and add it to the internal journal.

◆ Erase()

None Erase (   self,
WRApp.CheckpointID  id 
)

Erase an entry from the internal journal that matches the provided ID and delete its related snapshot.

Reimplemented in SnapshotInMemoryManager, and HDF5SnapshotManager.

◆ EraseObsolete()

None EraseObsolete (   self)

Call Manager.Erase on all IDs that return true for the provided predicate.

◆ Get()

"Snapshot" Get (   self,
WRApp.CheckpointID  id 
)

Retrieve a snapshot from the internal journal that matches the provided ID.

Reimplemented in HDF5SnapshotManager.

◆ GetDefaultParameters()

KratosMultiphysics.Parameters GetDefaultParameters (   cls)

The documentation for this class was generated from the following file: