Skip to content

Commit fe784c7

Browse files
authored
Delete more deprecated code after in-situ uses new diagnostics format (#1041)
* move ascent to new diagnostics * move Sensei to the new diagnostics * minor cleaning in new diagnostics * Delete more deprecated code after in-situ uses new diags * remove deprecated input options from subcycling test * Finish updating the doc for Sensei and Ascent with the new diags
1 parent bd7d6f6 commit fe784c7

File tree

6 files changed

+23
-463
lines changed

6 files changed

+23
-463
lines changed

Docs/source/running_cpp/parameters.rst

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,9 @@ Boundary conditions
11331133
Diagnostics and output
11341134
----------------------
11351135

1136+
In-situ visualization
1137+
^^^^^^^^^^^^^^^^^^^^^
1138+
11361139
WarpX has three types of diagnostics:
11371140
``FullDiagnostics`` consist in dumps of fields and particles at given iterations,
11381141
``BackTransformedDiagnostics`` are used when running a simulation in a boosted frame, to reconstruct output data to the lab frame, and
@@ -1148,6 +1151,7 @@ Similar to what is done for physical species, WarpX has a class Diagnostics that
11481151
The user specifies the number of diagnostics and the name of each of them, and then specifies options for each of them separately.
11491152
Note that some parameter (those that do not start with a ``<diag_name>.`` prefix) apply to all diagnostics.
11501153
This should be changed in the future.
1154+
In-situ capabilities can be used by turning on Sensei or Ascent (provided they are installed) through the output format, see below.
11511155

11521156
* ``diagnostics.diags_names`` (list of `string` optional, default `empty`)
11531157
Name of each diagnostics.
@@ -1175,8 +1179,18 @@ This should be changed in the future.
11751179

11761180
* ``ascent`` for in-situ visualization using Ascent.
11771181

1182+
* ``sensei`` for in-situ visualization using Sensei.
1183+
11781184
example: ``diag1.format = openpmd``.
11791185

1186+
* ``<diag_name>.sensei_config`` (`string`)
1187+
Only read if ``<diag_name>.format = sensei``.
1188+
Points to the SENSEI XML file which selects and configures the desired back end.
1189+
1190+
* ``<diag_name>.sensei_pin_mesh`` (`integer`; 0 by default)
1191+
Only read if ``<diag_name>.format = sensei``.
1192+
When 1 lower left corner of the mesh is pinned to 0.,0.,0.
1193+
11801194
* ``<diag_name>.openpmd_backend`` (``bp``, ``h5`` or ``json``) optional, only used if ``<diag_name>.format = openpmd``
11811195
`I/O backend <https://openpmd-api.readthedocs.io/en/latest/backends/overview.html>`_ for `openPMD <https://www.openPMD.org>`_ data dumps.
11821196
``bp`` is the `ADIOS I/O library <https://csmd.ornl.gov/adios>`_, ``h5`` is the `HDF5 format <https://www.hdfgroup.org/solutions/hdf5/>`_, and ``json`` is a `simple text format <https://en.wikipedia.org/wiki/JSON>`_.
@@ -1530,24 +1544,6 @@ Reduced Diagnostics
15301544
The separator between row values in the output file.
15311545
The default separator is a whitespace.
15321546

1533-
In-situ visualization
1534-
^^^^^^^^^^^^^^^^^^^^^
1535-
1536-
Besides the diagnostics described above, WarpX has in-situ visualization capabilities.
1537-
This is controlled by the following option(s):
1538-
1539-
* ``insitu.int`` (`integer`; 0 by default)
1540-
Turns in situ processing on or off and controls how often data is processed.
1541-
1542-
* ``insitu.start`` (`integer`; 0 by default)
1543-
Controls when in situ processing starts.
1544-
1545-
* ``insitu.config`` (`string`)
1546-
Points to the SENSEI XML file which selects and configures the desired back end.
1547-
1548-
* ``insitu.pin_mesh`` (`integer`; 0 by default)
1549-
when 1 lower left corner of the mesh is pinned to 0.,0.,0.
1550-
15511547
Lookup tables and other settings for QED modules (implementation in progress)
15521548
-----------------------------------------------------------------------------
15531549

Examples/Tests/subcycling/inputs_2d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ warpx.use_filter = 1
2525
warpx.do_pml = 1
2626
warpx.do_subcycling = 1
2727
warpx.refine_plasma = 0
28-
warpx.plot_finepatch = 1
29-
warpx.plot_crsepatch = 1
3028
warpx.n_current_deposition_buffer = 0
3129
warpx.n_field_gather_buffer = 0
3230

Source/Diagnostics/FieldIO.H

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ getInterpolatedVector(
8282
const int r_ratio, const amrex::Real* dx,
8383
const int ngrow );
8484

85-
void
86-
coarsenCellCenteredFields(
87-
amrex::Vector<amrex::MultiFab>& coarse_mf,
88-
amrex::Vector<amrex::Geometry>& coarse_geom,
89-
const amrex::Vector<amrex::MultiFab>& source_mf,
90-
const amrex::Vector<amrex::Geometry>& source_geom,
91-
int coarse_ratio, int finest_level );
92-
9385
#ifdef WARPX_USE_OPENPMD
9486
void
9587
setOpenPMDUnit( openPMD::Mesh mesh, const std::string field_name );

0 commit comments

Comments
 (0)