Skip to content

Commit

Permalink
Fix small documentation issues after 0.15 release (#1440)
Browse files Browse the repository at this point in the history
* Fix headers in workflow.rst

* Fix documentation for preferred_flush_target in ADIOS2
  • Loading branch information
franzpoeschel authored Jun 17, 2023
1 parent d0a0e1d commit e533776
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/source/backends/adios2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ In the openPMD-api, this can be done by specifying backend-specific parameters t

.. code:: cpp
series.flush(R"({"adios2": {"preferred_flush_target": "disk"}})")
series.flush(R"({"adios2": {"engine": {"preferred_flush_target": "disk"}}})")
The memory consumption of this approach shows that the 2GB buffer is first drained and then recreated after each ``flush()``:

Expand All @@ -259,7 +259,7 @@ Note that this involves data copies that can be avoided by either flushing direc

.. code:: cpp
series.flush(R"({"adios2": {"preferred_flush_target": "buffer"}})")
series.flush(R"({"adios2": {"engine": {"preferred_flush_target": "buffer"}}})")
With this strategy, the BP5 engine will slowly build up its buffer until ending the step.
Rather than by reallocation as in BP4, this is done by appending a new chunk, leading to a clearly more acceptable memory profile:
Expand Down
8 changes: 4 additions & 4 deletions docs/source/usage/workflow.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.. _workflow:

Workflow
========

Access modes
============
------------

The openPMD-api distinguishes between a number of different access modes:

Expand Down Expand Up @@ -60,9 +63,6 @@ The openPMD-api distinguishes between a number of different access modes:
It is a user's responsibility to ensure that the appended dataset and the appended-to dataset are compatible with each other.
The results of using incompatible backend configurations are undefined.

Workflow
========

Deferred Data API Contract
--------------------------

Expand Down

0 comments on commit e533776

Please sign in to comment.