9#include "../PointWriter.h"
127 virtual void plot(
int index,
double value )
override;
131 virtual void plot(
int index,
double* values,
int numberOfValues )
override;
Boolean semaphore across MPI ranks.
A writer for scalar data on points (vertices).
This is the vertex writer you have to create to plot the vertices.
A writer to assign points a value.
Interface for all Plotters.
A writer to assign points a value.
virtual void plot(int index, double *values, int numberOfValues) override
virtual void plot(int index, const tarch::la::Vector< 3, double > &value) override
virtual void close() override
If you close your writer, each point has to be assigned a value, i.e.
virtual void plot(int index, double value) override
Write data for one point.
tarch::plotter::griddata::unstructured::UnstructuredGridWriter::VertexDataWriter * _particleDataWriter
virtual void plot(int index, const tarch::la::Vector< 2, double > &value) override
virtual ~PointDataWriter()
virtual void plot(int index, const tarch::la::Vector< 1, double > &value) override
virtual void assignRemainingPointsDefaultValues() override
PointDataWriter(VTKWriter &myWriter, const std::string &identifier, int recordsPerPoint)
VTKWriter & _myWriter
Underlying VTK writer.
Implementation of the point data writer that basically maps the points onto a vtk text file,...
virtual bool isOpen() override
VTKWriter(const VTKWriter &writer)=delete
Copy constructor.
tarch::plotter::griddata::unstructured::UnstructuredGridWriter * _vtkWriter
tarch::plotter::griddata::unstructured::UnstructuredGridWriter::CellWriter * _cellWriter
tarch::plotter::griddata::unstructured::UnstructuredGridWriter::VertexWriter * _vertexWriter
virtual int plotPoint(const tarch::la::Vector< 2, double > &position) override
virtual int plotPoint(const tarch::la::Vector< 3, double > &position) override
VTKWriter & operator=(const VTKWriter &writer)=delete
Assignment operator.
static tarch::mpi::BooleanSemaphore _sempahore
This is a global (mpi) semaphore that I use to update/modify the index file over all files.
virtual void clear() override
Clear the writer, i.e.
virtual bool writeToFile() override
Before we write to a file, we have to close the.
VTKWriter(bool binaryFile, const std::string &fileName, const std::string &indexFileName, tarch::plotter::PVDTimeSeriesWriter::IndexFileMode modeFile, double timeStamp)
virtual PointWriter::PointDataWriter * createPointDataWriter(const std::string &identifier, int recordsPerPoint) override
Caller has to destroy this instance manually.
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.