Alsvinn  0.5.3
The fast FVM simulator with UQ support
parallel_netcdf_utils.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <pnetcdf.h>
3 #include "alsfvm/types.hpp"
5 
6 namespace alsfvm {
7 namespace io {
8 
10 template<class RealType>
11 typename std::enable_if<std::is_same<RealType, double>::value, int>::type ncmpi_put_vara_real_all(
12  int ncid, int varid, const MPI_Offset* start,
13  const MPI_Offset* count, const RealType* op) {
14  return ncmpi_put_vara_double_all(ncid, varid, start, count, op);
15 
16 }
17 
19 template<class RealType>
20 typename std::enable_if<std::is_same<RealType, float>::value, int>::type ncmpi_put_vara_real_all(
21  int ncid, int varid, const MPI_Offset* start,
22  const MPI_Offset* count, const RealType* op) {
23  return ncmpi_put_vara_float_all(ncid, varid, start, count, op);
24 
25 }
26 
27 }
28 }
VolumeType type
Definition: VolumeFactory.cpp:85
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
std::enable_if< std::is_same< RealType, double >::value, int >::type ncmpi_put_vara_real_all(int ncid, int varid, const MPI_Offset *start, const MPI_Offset *count, const RealType *op)
Wrapper function for ncmpi_put_vara_double_all.
Definition: parallel_netcdf_utils.hpp:11