56 BOOST_TEST_MESSAGE(
"Remeshing");
114 BOOST_TEST(data == expected, boost::test_tools::per_element());
122 BOOST_TEST(data == expected, boost::test_tools::per_element());
Main Application Programming Interface of preCICE. Include using #include <precice/precice....
int getDataDimensions(::precice::string_view meshName, ::precice::string_view dataName) const
Returns the spatial dimensionality of the given data on the given mesh.
bool isCouplingOngoing() const
Checks if the coupled simulation is still ongoing.
void finalize()
Finalizes preCICE.
bool requiresWritingCheckpoint()
void initialize()
Fully initializes preCICE and coupling data.
void writeData(::precice::string_view meshName, ::precice::string_view dataName, ::precice::span< const VertexID > ids, ::precice::span< const double > values)
Writes data to a mesh.
bool requiresReadingCheckpoint()
void setMeshVertices(::precice::string_view meshName, ::precice::span< const double > coordinates, ::precice::span< VertexID > ids)
Creates multiple mesh vertices.
double getMaxTimeStepSize() const
Get the maximum allowed time step size of the current window.
void advance(double computedTimeStepSize)
Advances preCICE after the solver has computed one time step.
int getMeshDimensions(::precice::string_view meshName) const
Returns the spatial dimensionality of the given mesh.
void readData(::precice::string_view meshName, ::precice::string_view dataName, ::precice::span< const VertexID > ids, double relativeReadTime, ::precice::span< double > values) const
Reads data values from a mesh. Values correspond to a given point in time relative to the beginning o...
void resetMesh(::precice::string_view meshName)
Removes all vertices and connectivity information from the mesh.
contains the testing framework.
QuickTest & expect(const std::vector< double > &expected)
QuickTest & writeCheckpoint()
std::vector< VertexID > vertexIDs
QuickTest & advance(double dt)
QuickTest & writeAll(double d)
std::vector< double > read()
QuickTest(Participant &p, Mesh m, WriteData w)
QuickTest & setVertices(const std::vector< double > &pos)
QuickTest & expectAll(double e)
QuickTest(Participant &p, Mesh m, ReadData r, WriteData w)
QuickTest(Participant &p, Mesh m, ReadData r)
QuickTest & expectWriteCheckpoint()
QuickTest & expectReadCheckpoint()
std::string writeDataName
QuickTest & readCheckpoint()
QuickTest & write(const std::vector< double > &data)
QuickTest & expectCouplingCompleted()