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 "dg/backend/mpi_init.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::put_var (int ncid, int varid, const Topology &grid, const host_vector &data, bool parallel=false) |
DEPRECATED Write an array to NetCDF file. | |
template<class host_vector , class Topology > | |
void | dg::file::put_vara (int ncid, int varid, unsigned slice, const Topology &grid, const host_vector &data, bool parallel=false) |
DEPRECATED Write an array to NetCDF file. | |
template<class T , class real_type > | |
void | dg::file::put_var (int ncid, int varid, const RealGrid0d< real_type > &grid, T data, bool parallel=false) |
DEPRECATED Write a scalar to the NetCDF file. | |
template<class T , class real_type > | |
void | dg::file::put_vara (int ncid, int varid, unsigned slice, const RealGrid0d< real_type > &grid, T data, bool parallel=false) |
DEPRECATED Write a scalar to the NetCDF file. | |
Define variable writers