netxsimdg
Loading...
Searching...
No Matches
CommonRestartMetadata.hpp
Go to the documentation of this file.
1
8#ifndef COMMONRESTARTMETADATA_HPP
9#define COMMONRESTARTMETADATA_HPP
10
13
14#include <ncFile.h>
15#include <ncGroup.h>
16
17namespace Nextsim {
18
20public:
23 static netCDF::NcGroup& writeStructureType(
24 netCDF::NcFile& rootGroup, const ModelMetadata& metadata);
26 static netCDF::NcGroup& writeRestartMetadata(
27 netCDF::NcGroup& metaGroup, const ModelMetadata& metadata);
28
29 static const std::string timeNodeName() { return "time"; }
30
31 static const std::string formattedName() { return "formatted"; }
32
33 static const std::string unformattedName() { return "time"; }
34
35 static const std::string configurationNode() { return "configuration"; }
36};
37
38} /* namespace Nextsim */
39
40#endif /* COMMONRESTARTMETADATA_HPP */
static netCDF::NcGroup & writeRestartMetadata(netCDF::NcGroup &metaGroup, const ModelMetadata &metadata)
Writes the standard restart file metadata to a metadata node.
static netCDF::NcGroup & writeStructureType(netCDF::NcFile &rootGroup, const ModelMetadata &metadata)
Writes the structure type to the root of the restart file for future retrieval.