diff options
author | 2021-02-21 10:25:53 -0800 | |
---|---|---|
committer | 2021-02-21 10:25:53 -0800 | |
commit | ce00b5f347cb20979a07d20073442aec667775d1 (patch) | |
tree | 0fa864c2fa19007ad7dcc9b1b1801d297a919071 /Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | |
parent | 8aac5d31e800cd7f661b5f535eff6c36698802a6 (diff) | |
download | WarpX-ce00b5f347cb20979a07d20073442aec667775d1.tar.gz WarpX-ce00b5f347cb20979a07d20073442aec667775d1.tar.zst WarpX-ce00b5f347cb20979a07d20073442aec667775d1.zip |
Backtransformed Diags with openPMD (#1717)
* add geometry object and plotfile variables for BTD
* fixing buffer and snapshot definitions and emptying/refilling of buffers
* Adding Plotfile capability for BTD
* fix eol
* add comments and remove commented line in OpnPMD
* remove unnecesary print statement
* read header without bcast within io scope and modify fabname in first fabheader
* remove tab
* add empty line back
* Adding snapshot geom and BTD parameters for openpmd interface
* eol
* remove print statement
* eol
* openPMD: BTD write support
- open series only once
- declare iteration in labframe only once
- including fields & extents
- use proper global lab-frame meta-data and write only once
* fix the right path for openpmd BTD data
* eol fix
* Spaces & a comment
* rename to first_write_to_iteration for clarity
just me being picky about my choice of variable name
* Fix write condition (first)
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp')
-rw-r--r-- | Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 1462cfe29..8428b4ffd 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -21,7 +21,9 @@ FlushFormatPlotfile::WriteToFile ( const amrex::Vector<int> iteration, const double time, const amrex::Vector<ParticleDiag>& particle_diags, int nlev, const std::string prefix, bool plot_raw_fields, - bool plot_raw_fields_guards, bool plot_raw_rho, bool plot_raw_F) const + bool plot_raw_fields_guards, bool plot_raw_rho, bool plot_raw_F, + bool /*isBTD*/, int /*snapshotID*/, const amrex::Geometry& /*full_BTD_snapshot*/, + bool /*isLastBTDFlush*/) const { WARPX_PROFILE("FlushFormatPlotfile::WriteToFile()"); auto & warpx = WarpX::GetInstance(); |