Skip to content

Commit 508923a

Browse files
committed
Documentation
1 parent 7790fe2 commit 508923a

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

docs/source/backends/adios2.rst

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,43 @@ For further information, check out the :ref:`installation guide <install>`,
1010
:ref:`build dependencies <development-dependencies>` and the :ref:`build options <development-buildoptions>`.
1111

1212

13-
I/O Method
14-
----------
13+
I/O Method and Engine Selection
14+
-------------------------------
1515

1616
ADIOS2 has several engines for alternative file formats and other kinds of backends, yet natively writes to ``.bp`` files.
17-
The openPMD API uses the BP4 engine as the default file engine and the SST engine for streaming support.
18-
We currently leverage the default ADIOS2 transport parameters, i.e. ``POSIX`` on Unix systems and ``FStream`` on Windows.
17+
The openPMD API uses the File meta engine as the default file engine and the SST engine for streaming support.
18+
19+
The ADIOS2 engine can be selected in different ways:
20+
21+
1. Automatic detection via the selected file ending
22+
2. Explicit selection of an engine by specifying the environment variable ``OPENPMD_ADIOS2_ENGINE`` (case-independent).
23+
This overrides the automatically detected engine.
24+
3. Explicit selection of an engine by specifying the JSON/TOML key ``adios2.engine.type`` as a case-independent string.
25+
This overrides both previous options.
26+
27+
Automatic engine detection supports the following extensions:
28+
29+
.. list-table::
30+
:header-rows: 1
31+
32+
* - Extension
33+
- Selected ADIOS2 Engine
34+
* - ``.bp``
35+
- ``"file"``
36+
* - ``.bp4``
37+
- ``"bp4"``
38+
* - ``.bp5``
39+
- ``"bp5"``
40+
* - ``.sst``
41+
- ``"sst"``
42+
* - ``.ssc``
43+
- ``"ssc"``
44+
45+
Specifying any of these extensions will automatically activate the ADIOS2 backend.
46+
The ADIOS2 backend will create file system paths exactly as they were specified and not change file extensions.
47+
Exceptions to this are the BP3 and SST engines which require their endings ``.bp`` and ``.sst`` respectively.
48+
49+
For file engines, we currently leverage the default ADIOS2 transport parameters, i.e. ``POSIX`` on Unix systems and ``FStream`` on Windows.
1950

2051
Steps
2152
-----

0 commit comments

Comments
 (0)