BISICLES AMR ice sheet model
0.9
|
part of Observer-Observee implementation More...
#include <AmrIce.H>
Public Types | |
enum | Notification { PostInitGrids, PreVelocitySolve, PostVelocitySolve, PostGeometryUpdate, PreCalving, PostCalving } |
Public Member Functions | |
virtual | ~Observer () |
virtual void | notify (const Notification, AmrIce &)=0 |
General purpose notify method. More... | |
virtual void | addPlotVars (Vector< std::string > &a_vars) |
Fat interface members. More... | |
virtual void | writePlotData (LevelData< FArrayBox > &a_data, int a_level) |
copy level a_level plot data to LevelData<FArrayBox>& a_data More... | |
virtual void | addCheckVars (Vector< std::string > &a_vars) |
fill a_var with the names of variables to add to the checkpoint file More... | |
virtual void | writeCheckData (HDF5Handle &a_handle, int a_level) |
copy level a_level checkpoint data to LevelData<FArrayBox>& a_data More... | |
virtual void | readCheckData (HDF5Handle &a_handle, HDF5HeaderData &a_header, int a_level, const DisjointBoxLayout &a_grids) |
read level a_level checkpoint data from LevelData<FArrayBox>& a_data More... | |
Friends | |
class | AmrIce |
part of Observer-Observee implementation
Similar to the implementation in Chombo/lib/src/AMREllitic/Multigrid.H
|
inlinevirtual |
References addPlotVars(), notify(), and AmrIce::removeObserver().
|
inlinevirtual |
fill a_var with the names of variables to add to the checkpoint file
Reimplemented in DamageIceObserver, and MelangeIceObserver.
|
inlinevirtual |
Fat interface members.
For now, these allow observers to add data to the plot and checkpoint files, and read checkpoint data. This might not be the most graceful design, but it fits with the way plot and checkpoint files have been done up till now add the names of variables to add to the plot file to a_var, in the order they will be written
Reimplemented in DamageIceObserver, and MelangeIceObserver.
Referenced by ~Observer().
|
pure virtual |
General purpose notify method.
Implemented in DamageIceObserver, and MelangeIceObserver.
Referenced by AmrIce::removeObserver(), and ~Observer().
|
inlinevirtual |
read level a_level checkpoint data from LevelData<FArrayBox>& a_data
Reimplemented in DamageIceObserver, and MelangeIceObserver.
|
inlinevirtual |
copy level a_level checkpoint data to LevelData<FArrayBox>& a_data
Reimplemented in DamageIceObserver, and MelangeIceObserver.
|
inlinevirtual |
copy level a_level plot data to LevelData<FArrayBox>& a_data
Reimplemented in DamageIceObserver, and MelangeIceObserver.
|
friend |