DataContext(mesh::PtrData data, mesh::PtrMesh mesh)
Construct a new DataContext without a mapping. Protected, because only ReadDataContext and WriteDataC...
void completeJustInTimeMapping()
Evaluates the MappingDataCache and stores the result in the _writeDataBuffer.
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 resetBufferedData()
Resets the writeDataBuffer and the mapping data cache.
void writeAndMapValues(::precice::span< const double > coordinates, ::precice::span< const double > values)
Forwards the just-in-time mapping API call for writing data to the data context.
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.
provides Mesh, Data and primitives.
std::shared_ptr< Data > PtrData
std::shared_ptr< Mesh > PtrMesh
contains the time interpolation logic.
Holds a data mapping and related information.
Stores a mesh and related objects and data.