13#define ERR(e) {printf("Error: %s\n", nc_strerror(e)); exit(ERRCODE);}
20 nc_writer(
string filename, vector<long> extensions, vector<string> d_names);
23 void add_var(
string name, vector<string> dims);
26 void write(
string name,
const double* data);
30 std::map<string,int> dim_ids;
31 std::map<string,int> var_ids;
34#define NETCDF_CHECK(e) \
37 if (res != NC_NOERR) { \
38 std::cout << "NetCDF Error " << __FILE__ << ":" << __LINE__ << ": " \
39 << nc_strerror(res) << std::endl; \
Provides shared types, platform headers, and basic definitions.
Core namespace for Ensign's numerical algorithms and data structures.
Writes simulation variables and dimension metadata to a NetCDF file.
void add_var(string name, vector< string > dims)
nc_writer(string filename, vector< long > extensions, vector< string > d_names)
void write(string name, const double *data)