aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Evolve/WarpXEvolve.cpp3
-rw-r--r--Source/Python/WarpX_py.H4
2 files changed, 5 insertions, 2 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp
index 39fc14896..de2b59691 100644
--- a/Source/Evolve/WarpXEvolve.cpp
+++ b/Source/Evolve/WarpXEvolve.cpp
@@ -335,6 +335,9 @@ WarpX::Evolve (int numsteps)
}
multi_diags->FilterComputePackFlush( step );
+ // execute afterdiagnostic callbacks
+ ExecutePythonCallback("afterdiagnostics");
+
// inputs: unused parameters (e.g. typos) check after step 1 has finished
if (!early_params_checked) {
amrex::Print() << "\n"; // better: conditional \n based on return value
diff --git a/Source/Python/WarpX_py.H b/Source/Python/WarpX_py.H
index 15076ea35..a0392a203 100644
--- a/Source/Python/WarpX_py.H
+++ b/Source/Python/WarpX_py.H
@@ -21,8 +21,8 @@
* functions will be called. Currently supported keys (callback points) are
* afterinit, beforecollisions, aftercollisions, beforeEsolve, poissonsolver,
* afterEsolve, beforedeposition, afterdeposition, particlescraper,
- * particleloader, beforestep, afterstep, afterrestart, particleinjection and
- * appliedfields.
+ * particleloader, beforestep, afterstep, afterdiagnostics, afterrestart,
+ * particleinjection and appliedfields.
*/
extern std::map< std::string, WARPX_CALLBACK_PY_FUNC_0 > warpx_callback_py_map;