netxsimdg
Loading...
Searching...
No Matches
DevGridIO.hpp
Go to the documentation of this file.
1
8#ifndef DEVGRIDIO_HPP
9#define DEVGRIDIO_HPP
10
12
13#include <vector>
14
15namespace Nextsim {
16
17class DevGrid;
18
21class DevGridIO : public IDevGridIO {
22public:
23 DevGridIO(DevGrid& grid)
24 : IDevGridIO(grid)
25 {
26 }
27 virtual ~DevGridIO() = default;
28
29 ModelState getModelState(const std::string& filePath) const override;
30 void dumpModelState(const ModelState& state, const ModelMetadata& metadata,
31 const std::string& filePath, bool isRestart) const override;
32
33private:
34 DevGrid* grid;
35};
36
37} /* namespace Nextsim */
38
39#endif /* DEVGRIDIO_HPP */
A class to hold a grid of ElementData instances in a fixed sized square grid.
Definition DevGrid.hpp:23
A class to implemented the actual IO for DevGrid, isolating the NetCDF libraries from the rest of the...
Definition DevGridIO.hpp:21
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.
A class that deals with all the netCDF related parts of DevGrid.