Stores one Data object with related mesh.
Stores one Data object with related mesh. Context stores data to be written to and potentially provid...
void trimAfter(double time)
Removes stample before time and (if mapping exists) fromData or toData.
void resizeBufferTo(int size)
time::Sample _writeDataBuffer
Buffer to store written data until it is copied to _providedData->timeStepsStorage()
void writeGradientsIntoDataBuffer(::precice::span< const VertexID > vertices, ::precice::span< const double > gradients)
Store gradients in _writeDataBuffer.
WriteDataContext(const WriteDataContext ©)=delete
Disable copy construction.
static logging::Logger _log
WriteDataContext(WriteDataContext &&)=default
Move constructor, use the implicitly declared.
void storeBufferedData(double currentTime)
Store data from _writeDataBuffer in persistent storage.
void resetBuffer()
Resets writeDataBuffer.
WriteDataContext & operator=(WriteDataContext &&)=default
WriteDataContext & operator=(const WriteDataContext &assign)=delete
Disable assignment construction.
WriteDataContext(mesh::PtrData data, mesh::PtrMesh mesh)
Construct a new WriteDataContext object without a mapping.
void writeValuesIntoDataBuffer(::precice::span< const VertexID > vertices, ::precice::span< const double > values)
Store values in _writeDataBuffer.
void appendMappingConfiguration(MappingContext &mappingContext, const MeshContext &meshContext) override
Adds a MappingContext and the MeshContext required by the write mapping to the corresponding WriteDat...
This class provides a lightweight logger.
A C++ 11 implementation of the non-owning C++20 std::span type.
Main namespace of the precice library.
static std::unique_ptr< precice::Participant > impl
Holds a data mapping and related information.
Stores a mesh and related objects and data.