38 #ifndef TYPES_ARRAYTYPE_H
39 #define TYPES_ARRAYTYPE_H
95 unsigned int arraySize = file.
getVarSize() /
sizeof(T);
110 if (MPI_Type_commit(&
m_mpiType) != MPI_SUCCESS)
112 #endif // ASAGI_NOMPI
114 std::lock_guard<threads::Mutex> lock(
m_lock, std::adopt_lock);
133 #endif // ASAGI_NOMPI
139 const size_t *offset,
149 void convert(
const void* data,
void* buf)
const
157 #endif // TYPES_ARRAYTYPE_H
static void copy(const void *data, void *buf, unsigned int size)
MPI_Datatype getMPIType() const
void convert(const void *data, void *buf) const
unsigned int size() const
asagi::Grid::Error check(const io::NetCdfReader &file)
void getBlock(void *block, const size_t *offset, const size_t *size)
Reads a block of cells from the netcdf file. The type is converted to T.
Include file for C and C++ API.
unsigned int getVarSize() const
void load(io::NetCdfReader &file, const size_t *offset, const size_t *size, void *buf) const