|
netxsimdg
|
A class that deals with all the netCDF related parts of DevGrid. More...
#include <IDevGridIO.hpp>


Public Member Functions | |
| IDevGridIO (DevGrid &grid) | |
| virtual ModelState | getModelState (const std::string &filePath) const =0 |
| Generates the ModelState based on the data in the given file. | |
| virtual void | dumpModelState (const ModelState &state, const ModelMetadata &metadata, const std::string &filePath, bool isRestart) const =0 |
| Dumps the given ModelState to the given file path. | |
Protected Attributes | |
| DevGrid * | grid |
A class that deals with all the netCDF related parts of DevGrid.
DevGrid is a module, and currently merely mentioning it in the code requires the cpp file to be linked. Since this would pull in the NetCDF libraries, the DevGrid::IDevGridIO interface was created to separate out all the code that actually uses the NetCDF libraries. See DevGridIO for the implementing class.
Definition at line 26 of file IDevGridIO.hpp.
|
inline |
Definition at line 28 of file IDevGridIO.hpp.
|
pure virtual |
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? |
Implemented in Nextsim::DevGridIO.

|
pure virtual |
Generates the ModelState based on the data in the given file.
| filePath | The location of the NetCDF restart file to be read. |
Implemented in Nextsim::DevGridIO.

|
protected |
Definition at line 53 of file IDevGridIO.hpp.