diff options
author | 2019-04-29 13:05:57 -0700 | |
---|---|---|
committer | 2019-04-29 13:05:57 -0700 | |
commit | ce517d68ee28cf4870a4f84963682284a7513d14 (patch) | |
tree | 1a1dde8ce83fc41bd662510e65a0b46aae695658 /Source/FieldSolver/SpectralSolver/SpectralFieldData.H | |
parent | 1cd46dbcb84fc19e6595fe02a473da43c41cb080 (diff) | |
download | WarpX-ce517d68ee28cf4870a4f84963682284a7513d14.tar.gz WarpX-ce517d68ee28cf4870a4f84963682284a7513d14.tar.zst WarpX-ce517d68ee28cf4870a4f84963682284a7513d14.zip |
Revert to enumeration in struct
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralFieldData.H')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralFieldData.H | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index 983f0da16..9e31ac5b8 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -9,9 +9,10 @@ using SpectralField = amrex::FabArray< amrex::BaseFab <Complex> >; /* Index for the fields that will be stored in spectral space */ -enum struct SpectralFieldIndex: int -{ Ex=0, Ey, Ez, Bx, By, Bz, Jx, Jy, Jz, rho_old, rho_new, n_fields }; -// n_fields is automatically the total number of fields +struct SpectralFieldIndex { + enum { Ex=0, Ey, Ez, Bx, By, Bz, Jx, Jy, Jz, rho_old, rho_new, n_fields }; + // n_fields is automatically the total number of fields +}; /* \brief Class that stores the fields in spectral space, and performs the * Fourier transforms between real space and spectral space |