diff options
author | 2020-12-11 09:16:54 -0800 | |
---|---|---|
committer | 2020-12-11 09:16:54 -0800 | |
commit | 3fde18912506bbfeeeaacc255f0c8a66ab2e2a05 (patch) | |
tree | 7d330e5ffc1fc8a540fd7d3a3bdee1072b7a1d2e /Source/Diagnostics/WarpXOpenPMD.cpp | |
parent | a7ba409b4cd0ce437d06f39fe6918745bf4407d5 (diff) | |
download | WarpX-3fde18912506bbfeeeaacc255f0c8a66ab2e2a05.tar.gz WarpX-3fde18912506bbfeeeaacc255f0c8a66ab2e2a05.tar.zst WarpX-3fde18912506bbfeeeaacc255f0c8a66ab2e2a05.zip |
PSATD Runtime Control (#1300)
* Docs: PSATD Runtime Option
* Tests: PSATD Runtime Option
Add new runtime option to PSATD regression test matrix.
* PICMI: PSATD runtime option
* Source: PSATD Runtime Option
Diffstat (limited to 'Source/Diagnostics/WarpXOpenPMD.cpp')
-rw-r--r-- | Source/Diagnostics/WarpXOpenPMD.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Diagnostics/WarpXOpenPMD.cpp b/Source/Diagnostics/WarpXOpenPMD.cpp index d7072ac56..a82d5836a 100644 --- a/Source/Diagnostics/WarpXOpenPMD.cpp +++ b/Source/Diagnostics/WarpXOpenPMD.cpp @@ -719,15 +719,12 @@ WarpXOpenPMDPlot::WriteOpenPMDFields( //const std::string& filename, auto meshes = series_iteration.meshes; meshes.setAttribute( "fieldSolver", [](){ -#ifdef WARPX_USE_PSATD - return "PSATD"; -#else - switch( WarpX::particle_pusher_algo ) { + switch( WarpX::maxwell_solver_id ) { case MaxwellSolverAlgo::Yee : return "Yee"; case MaxwellSolverAlgo::CKC : return "CK"; + case MaxwellSolverAlgo::PSATD : return "PSATD"; default: return "other"; } -#endif }() ); meshes.setAttribute( "fieldBoundary", fieldBoundary ); meshes.setAttribute( "particleBoundary", particleBoundary ); |