![]() |
Documentation 6b54b78464
|
#include <CParaviewXMLFileWriter.hpp>
Public Member Functions | |
| CParaviewXMLFileWriter (string val_filename, CParallelDataSorter *valDataSorter) | |
| Construct a file writer using field names and the data sorter. | |
| CParaviewXMLFileWriter (CParallelDataSorter *valDataSorter, bool valDoublePrecision=false) | |
| Construct a file writer using field names and the data sorter. | |
| ~CParaviewXMLFileWriter () override | |
| Destructor. | |
| void | WriteData (string val_filename) override |
| Write sorted data to file in paraview binary file format. | |
Public Member Functions inherited from CFileWriter | |
| CFileWriter (CParallelDataSorter *valDataSorter, string valFileExt) | |
| Construct a file writer using field names, the data sorter and the file extension. | |
| CFileWriter (string valFileExt) | |
| Construct a file writer using field names, file extension. | |
| virtual | ~CFileWriter () |
| Destructor. | |
| su2double | GetBandwidth () const |
| Get the bandwith used for the last writing. | |
| su2double | GetFilesize () const |
| Get the filesize of the last written file. | |
| su2double | GetUsedTime () const |
| Get the used time of the last file writing. | |
Static Public Attributes | |
| static const string | fileExt = ".vtu" |
| File extension. | |
Additional Inherited Members | |
Protected Member Functions inherited from CFileWriter | |
| unsigned long | DetermineFilesize (std::string filename) |
| Determine the file size. | |
| bool | WriteMPIBinaryDataAll (const void *data, unsigned long sizeInBytes, unsigned long totalSizeInBytes, unsigned long offset) |
| Collectively write a binary data array distributed over all processors to file using MPI I/O. | |
| bool | WriteMPIBinaryData (const void *data, unsigned long sizeInBytes, unsigned short processor) |
| Write a binary data array to a currently opened file using MPI I/O. Note: routine must be called collectively, although only one processor writes its data. | |
| bool | WriteMPIString (const std::string &str, unsigned short processor) |
| Write a string to a currently opened file using MPI I/O. Note: routine must be called collectively, although only one processor writes the string. | |
| std::pair< unsigned long, unsigned long > | GetRankOffset (unsigned long localCount) const |
| Get the position of the data of this rank in an array that holds the data of all ranks in rank order. | |
| bool | WriteMPIStringAll (const std::string &str) |
| Write a string of each rank to the file, one after the other in rank order. | |
| bool | OpenMPIFile (string val_filename, bool append=false) |
| Open a file to write using MPI I/O. Already existing file is deleted. | |
| bool | CloseMPIFile () |
| Close a file using MPI I/O. | |
Protected Attributes inherited from CFileWriter | |
| int | rank |
| The MPI rank. | |
| int | size |
| The MPI size, aka the number of processors. | |
| std::string | fileExt |
| The file extension to be attached to the filename. | |
| su2double | startTime |
| Start time for time measurement | |
| su2double | stopTime |
| Stop time for time measurement | |
| su2double | usedTime |
| Used time for time measurement | |
| su2double | bandwidth |
| Used bandwidth | |
| su2double | fileSize |
| Size of the last written file | |
| CParallelDataSorter * | dataSorter |
| The parallel data sorter. | |
| FILE * | fhw |
| The file handle for writing. | |
| CParaviewXMLFileWriter::CParaviewXMLFileWriter | ( | string | val_filename, |
| CParallelDataSorter * | valDataSorter | ||
| ) |
Construct a file writer using field names and the data sorter.
| [in] | val_filename | - The name of the file |
| [in] | valDataSorter | - The parallel sorted data to write |
| CParaviewXMLFileWriter::CParaviewXMLFileWriter | ( | CParallelDataSorter * | valDataSorter, |
| bool | valDoublePrecision = false |
||
| ) |
Construct a file writer using field names and the data sorter.
| [in] | valDataSorter | - The parallel sorted data to write |
|
overridedefault |
Destructor.
|
overridevirtual |
Write sorted data to file in paraview binary file format.
Reimplemented from CFileWriter.
|
static |
File extension.