Alsvinn  0.5.3
The fast FVM simulator with UQ support
Classes | Namespaces | Macros | Typedefs | Functions
netcdf_utils.hpp File Reference
#include "alsfvm/types.hpp"
#include "alsutils/error/Exception.hpp"
#include <netcdf.h>

Go to the source code of this file.

Classes

struct  alsfvm::io::NetCDFType< RealType >
 
struct  alsfvm::io::NetCDFType< float >
 

Namespaces

 alsfvm
 Various utility functions to implement the tecno flux.
 
 alsfvm::io
 

Macros

#define NETCDF_SAFE_CALL(x)
 

Typedefs

typedef int alsfvm::io::netcdf_raw_ptr
 

Functions

netcdf_raw_ptr alsfvm::io::getNetcdfRealType ()
 Gets the type corresponding to the alsfvm::real type. More...
 
template<class RealType >
std::enable_if< std::is_same< RealType, double >::value, int >::type alsfvm::io::nc_put_var_real (int ncid, int varid, const RealType *op)
 Wrapper function for nc_put_var_double. More...
 
template<class RealType >
std::enable_if< std::is_same< RealType, float >::value, int >::type alsfvm::io::nc_put_var_real (int ncid, int varid, const RealType *op)
 Wrapper function for nc_put_var_double. More...
 

Macro Definition Documentation

◆ NETCDF_SAFE_CALL

#define NETCDF_SAFE_CALL (   x)
Value:
{\
auto error = x; \
if (error) { \
THROW("NetCDF error in call to\n\t" << #x << "\n\nError code: " << error \
<<"\n\nError message: " << nc_strerror(error)); \
} \
}
Definition: log.hpp:49