netxsimdg
|
A class to implemented the actual IO for DevGrid, isolating the NetCDF libraries from the rest of the code. More...
#include <DevGridIO.hpp>
Public Member Functions | |
DevGridIO (DevGrid &grid) | |
ModelState | getModelState (const std::string &filePath) const override |
Generates the ModelState based on the data in the given file. | |
void | dumpModelState (const ModelState &state, const ModelMetadata &metadata, const std::string &filePath, bool isRestart) const override |
Dumps the given ModelState to the given file path. | |
Public Member Functions inherited from Nextsim::IDevGridIO | |
IDevGridIO (DevGrid &grid) | |
Additional Inherited Members | |
Protected Attributes inherited from Nextsim::IDevGridIO | |
DevGrid * | grid |
A class to implemented the actual IO for DevGrid, isolating the NetCDF libraries from the rest of the code.
Definition at line 21 of file DevGridIO.hpp.
|
inline |
Definition at line 23 of file DevGridIO.hpp.
|
overridevirtual |
Dumps the given ModelState to the given file path.
state | The ModelState data |
filePath | The path to attempt to write the data to. |
isRestart | Should this file be written as a restart file or a diagnostic dump? |
Implements Nextsim::IDevGridIO.
Definition at line 154 of file DevGridIO.cpp.
|
overridevirtual |
Generates the ModelState based on the data in the given file.
filePath | The location of the NetCDF restart file to be read. |
Implements Nextsim::IDevGridIO.
Definition at line 109 of file DevGridIO.cpp.