diff options
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 |