Extension: Json and NetCDF utilities
#include "dg/file/file.h" (includes both Json and NetCDF utilities)
|
#include <exception>
#include <netcdf.h>
#include "dg/topology/grid.h"
#include "dg/backend/mpi_vector.h"
#include "dg/topology/mpi_grid.h"
Go to the source code of this file.
Classes | |
struct | dg::file::NC_Error |
Class thrown by the NC_Error_Handle. More... | |
struct | dg::file::NC_Error_Handle |
Empty utitlity class that handles return values of netcdf functions and throws NC_Error(status) if( status != NC_NOERR) More... | |
Namespaces | |
namespace | dg::file |
Namespace for netCDF output related classes and functions following the CF-conventions and netCDF conventions | |
Functions | |
template<class host_vector > | |
void | dg::file::put_var_double (int ncid, int varid, const dg::aTopology2d &grid, const host_vector &data, bool parallel=false) |
Convenience wrapper around nc_put_vara_double() More... | |
template<class host_vector > | |
void | dg::file::put_vara_double (int ncid, int varid, unsigned slice, const dg::aTopology2d &grid, const host_vector &data, bool parallel=false) |
Convenience wrapper around nc_put_vara_double() More... | |
template<class host_vector > | |
void | dg::file::put_var_double (int ncid, int varid, const dg::aTopology3d &grid, const host_vector &data, bool parallel=false) |
Convenience wrapper around nc_put_vara_double() More... | |
template<class host_vector > | |
void | dg::file::put_vara_double (int ncid, int varid, unsigned slice, const dg::aTopology3d &grid, const host_vector &data, bool parallel=false) |
Convenience wrapper around nc_put_vara_double() More... | |
template<class host_vector > | |
void | dg::file::put_var_double (int ncid, int varid, const dg::aMPITopology2d &grid, const dg::MPI_Vector< host_vector > &data, bool parallel=false) |
Convenience wrapper around nc_put_vara_double() More... | |
template<class host_vector > | |
void | dg::file::put_vara_double (int ncid, int varid, unsigned slice, const dg::aMPITopology2d &grid, const dg::MPI_Vector< host_vector > &data, bool parallel=false) |
Convenience wrapper around nc_put_vara_double() More... | |
template<class host_vector > | |
void | dg::file::put_var_double (int ncid, int varid, const dg::aMPITopology3d &grid, const dg::MPI_Vector< host_vector > &data, bool parallel=false) |
Convenience wrapper around nc_put_vara_double() More... | |
template<class host_vector > | |
void | dg::file::put_vara_double (int ncid, int varid, unsigned slice, const dg::aMPITopology3d &grid, const dg::MPI_Vector< host_vector > &data, bool parallel=false) |
Convenience wrapper around nc_put_vara_double() More... | |
Contains Error handling class