Skip to content

Commit

Permalink
Add pointer to interpolation section.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg committed Nov 13, 2023
1 parent eea944b commit a4950f6
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,18 @@ void Participant::writeData(
precice::span<const double> values)
```

<!-- TODO Also point to section where `relativeReadTime` is explained? We will probably solve this in https://github.com/precice/precice.github.io/pull/257 -->
Similarly, there is a `readData` API function for reading coupling data.
Similarly, there is a `readData` API function for reading coupling data:

```cpp
void readData(
precice::string_view meshName,
precice::string_view dataName,
precice::span<const VertexID> vertices,
double relativeReadTime,
precice::span<double> values) const;
```
We will talk about the additional argument `relativeReadTime` in detail in [the section on time interpolation](couple-your-code-waveform.html).
Let's define coupling meshes and access coupling data in our example code:
Expand Down

0 comments on commit a4950f6

Please sign in to comment.