Extension: Json and NetCDF utilities
#include "dg/file/file.h"
|
#include <exception>
#include <netcdf.h>
#include "dg/topology/grid.h"
#include "dg/backend/mpi_vector.h"
#include "dg/topology/mpi_grid.h"
#include "nc_error.h"
#include "nc_hyperslab.h"
Go to the source code of this file.
Namespaces | |
namespace | dg |
namespace | dg::file |
Namespace for Json and NetCDF I/O related classes and functions. | |
Functions | |
template<class host_vector , class Topology > | |
void | dg::file::get_var (int ncid, int varid, const Topology &grid, host_vector &data, bool parallel=true) |
DEPRECATED Convenience wrapper around nc_get_var . | |
template<class host_vector , class Topology > | |
void | dg::file::get_vara (int ncid, int varid, unsigned slice, const Topology &grid, host_vector &data, bool parallel=true) |
DEPRECATED Convenience wrapper around nc_get_vara() | |
template<class T , class real_type > | |
void | dg::file::get_var (int ncid, int varid, const RealGrid0d< real_type > &grid, T &data, bool parallel=true) |
DEPRECATED Read a scalar from the netcdf file. | |
template<class T , class real_type > | |
void | dg::file::get_vara (int ncid, int varid, unsigned slice, const RealGrid0d< real_type > &grid, T &data, bool parallel=true) |
DEPRECATED Read a scalar to the netcdf file. | |
Define variable readers