17 #ifndef _ADIOSWriter_h 18 #define _ADIOSWriter_h 20 #ifndef VTK_WRAPPING_CXX 28 #include <adios_mpi.h> 49 static bool SetCommunicator(MPI_Comm);
63 this->DefineAttribute(path, Type::NativeToADIOS<TN>(), ss.str());
71 return this->DefineScalar(path, Type::NativeToADIOS<TN>());
79 return this->DefineLocalArray(path, Type::NativeToADIOS<TN>(), dims, xfm);
81 int DefineLocalArray(
const std::string& path, ADIOS_DATATYPES adiosType,
89 this->WriteScalar(path, Type::NativeToADIOS<TN>(), &val);
91 void WriteScalar(
const std::string& path, ADIOS_DATATYPES adiosType,
96 void WriteArray(
const std::string& path,
const void* val);
100 void Commit(
const std::string& fileName,
bool append =
false);
109 void DefineAttribute(
const std::string& path, ADIOS_DATATYPES adiosType,
111 int DefineScalar(
const std::string& path, ADIOS_DATATYPES adiosType);
117 #endif // _ADIOSWriter_h
int DefineScalar(const std::string &path)
int DefineLocalArray(const std::string &path, const std::vector< ArrayDim > &dims, Transform xfm=Transform_NONE)
ArrayDim(const std::string &var)
void WriteScalar(const std::string &path, const TN &val)
void DefineAttribute(const std::string &path, const TN &value)