39 enum class VTKDatatype {
55 bool doublePrecision =
false;
60 unsigned long dataOffset;
90 void WriteData(
string val_filename)
override ;
102 void AddDataArray(VTKDatatype type,
string name,
unsigned short nComponents,
unsigned long size,
unsigned long globalSize);
112 void WriteDataArray(
const void* data, VTKDatatype type,
unsigned long size,
unsigned long globalSize,
113 unsigned long offset);
124 template <
class T,
class U>
125 void WriteDataArrayOfType(
const vector<U>& buffer, VTKDatatype type,
unsigned long size,
unsigned long globalSize,
126 unsigned long offset);
134 inline void GetTypeInfo(
const VTKDatatype type,
string &typeStr,
unsigned long &typeSize)
const {
136 case VTKDatatype::FLOAT64:
137 typeStr =
"\"Float64\"";
138 typeSize =
sizeof(double);
140 case VTKDatatype::FLOAT32:
141 typeStr =
"\"Float32\"";
142 typeSize =
sizeof(float);
144 case VTKDatatype::INT32:
145 typeStr =
"\"Int32\"";
146 typeSize =
sizeof(int32_t);
148 case VTKDatatype::INT64:
149 typeStr =
"\"Int64\"";
150 typeSize =
sizeof(int64_t);
152 case VTKDatatype::UINT8:
153 typeStr =
"\"UInt8\"";
154 typeSize =
sizeof(char);
Headers fo the file writer class.
static void Error(const std::string &ErrorMsg, const std::string &FunctionName)
Definition mpi_structure.cpp:131
Definition CFileWriter.hpp:42
int size
The MPI size, aka the number of processors.
Definition CFileWriter.hpp:53
Definition CParallelDataSorter.hpp:39
Definition CParaviewXMLFileWriter.hpp:32
~CParaviewXMLFileWriter() override
Destructor.
CParaviewXMLFileWriter(string val_filename, CParallelDataSorter *valDataSorter)
Construct a file writer using field names and the data sorter.
static const string fileExt
File extension.
Definition CParaviewXMLFileWriter.hpp:67
void WriteData(string val_filename) override
Write sorted data to file in paraview binary file format.
Definition CParaviewXMLFileWriter.cpp:63
#define CURRENT_FUNCTION
Definition mpi_structure.hpp:59