diff options
author | 2021-04-19 08:27:19 -0700 | |
---|---|---|
committer | 2021-04-19 08:27:19 -0700 | |
commit | 0beb477484381a012d9e80f326c4cb51926b5e5c (patch) | |
tree | be3b5e0d9374e2cb718582b4fdd64c13a1aa55ff /Source/FieldSolver/SpectralSolver/SpectralFieldData.H | |
parent | e0d1e2494f1190f1b42088273409887a459987bd (diff) | |
download | WarpX-0beb477484381a012d9e80f326c4cb51926b5e5c.tar.gz WarpX-0beb477484381a012d9e80f326c4cb51926b5e5c.tar.zst WarpX-0beb477484381a012d9e80f326c4cb51926b5e5c.zip |
Divergence cleaning for PSATD in PML (#1600)
* Add div(E)/div(B) cleaning options for PSATD in PMLs
* Pass missing flags to spectral solver in PML
* Duplicate MPI exchange and communication functions for G
* Use separate parameters for div cleaning in PMLs
* Add asserts for features that are not implemented
* Do not need to duplicate MPI exchange functions for G
* Add short documentation for new input parameters
* Set new parameters true by default with PSATD solver
* Add CI test for PML div cleaning with PSATD
* Use new syntax <diag_name>.intervals in new input file
* Reset benchmark of new CI test
* Always synchronize nodal points of G MultiFab
* Fix few warnings in 2D build
* Update Benchmark of pml_psatd_dive_divb_cleaning
* Improve Documentation of warpx.do_pml_dive_cleaning
Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com>
* Improve Documentation of warpx.do_pml_divb_cleaning
Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com>
* Improve Abort Message
* Clean Up
Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com>
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralFieldData.H')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralFieldData.H | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index 764ecc8af..4fc734853 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -33,11 +33,13 @@ struct SpectralAvgFieldIndex { // n_fields is automatically the total number of fields }; -/* Index for the PML fields, when stored in spectral space */ +/** Index for the PML fields, when stored in spectral space, + * (n_fields is automatically set to the total number of fields) + * TODO How to include the diagonal components only when needed? + */ struct SpectralPMLIndex { - enum { Exy=0, Exz, Eyx, Eyz, Ezx, Ezy, - Bxy, Bxz, Byx, Byz, Bzx, Bzy, n_fields }; - // n_fields is automatically the total number of fields + enum {Exx=0, Exy, Exz, Eyx, Eyy, Eyz, Ezx, Ezy, Ezz, + Bxx , Bxy, Bxz, Byx, Byy, Byz, Bzx, Bzy, Bzz, Fx, Fy, Fz, Gx, Gy, Gz, n_fields}; }; /** \brief Class that stores the fields in spectral space, and performs the |