#ifndef WARPX_SPECTRAL_BASE_ALGORITHM_H_ #define WARPX_SPECTRAL_BASE_ALGORITHM_H_ #include #include /* \brief Class that updates the field in spectral space * and stores the coefficients of the corresponding update equation. * * `SpectralBaseAlgorithm` is only a base class and cannot be used directly. * Instead use its subclasses, which implement the specific field update * equations for a given spectral algorithm. */ class SpectralBaseAlgorithm { public: // Member function that updates the fields in spectral space ; // meant to be overridden in subclasses virtual void pushSpectralFields(SpectralFieldData& f) const = 0; // The destructor should also be a virtual function, so that // a pointer to subclass of `SpectraBaseAlgorithm` actually // calls the subclass's destructor. virtual ~SpectralBaseAlgorithm() {}; protected: // Meant to be used in the subclasses using SpectralCoefficients = amrex::FabArray< amrex::BaseFab >; // Constructor SpectralBaseAlgorithm(const SpectralKSpace& spectral_kspace, const amrex::DistributionMapping& dm, const int norder_x, const int norder_y, const int norder_z, const bool nodal) // Compute and assign the modified k vectors : modified_kx_vec(spectral_kspace.getModifiedKComponent(dm,0,norder_x,nodal)), #if (AMREX_SPACEDIM==3) modified_ky_vec(spectral_kspace.getModifiedKComponent(dm,1,norder_y,nodal)), modified_kz_vec(spectral_kspace.getModifiedKComponent(dm,2,norder_z,nodal)) #else modified_kz_vec(spectral_kspace.getModifiedKComponent(dm,1,norder_z,nodal)) #endif {}; // Modified finite-order vectors KVectorComponent modified_kx_vec, modified_kz_vec; #if (AMREX_SPACEDIM==3) KVectorComponent modified_ky_vec; #endif }; #endif // WARPX_SPECTRAL_BASE_ALGORITHM_H_ t-fix Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-11-19Remove further dependence on vite package (#1906)Gravatar Matthew Phillips 3-5/+9
* Remove further dependence on vite package * Adds a changeset * Add graymatter as a regular dep
2021-11-19Version Packages (next) (#1904)astro@0.21.0-next.9Gravatar github-actions[bot] 23-21/+30
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19Remove OSX \x00 workaround (#1901)Gravatar Matthew Phillips 2-5/+5
* Remove OSX \x00 workaround * Adds a changeset
2021-11-19Resolve vite client modules to vendored vite (#1903)Gravatar Matthew Phillips 2-2/+7
* Resolve vite client modules to vendored vite * Adds a changeset
2021-11-19[ci] yarn formatGravatar matthewp 1-3/+3
2021-11-19Add Debug tests (#1882)Gravatar Matthew Phillips 4-0/+62
* Make Debug use the Code component * Use a random port so parallel testing works * some debugging * Skip these tests for now * Dont run these tests on osx
2021-11-19[ci] collect statsGravatar FredKSchott 1-0/+1
2021-11-19Version Packages (next) (#1881)astro@0.21.0-next.8@astrojs/renderer-vue@0.2.0-next.2Gravatar github-actions[bot] 25-23/+42
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-18Improve HMR (#1896)Gravatar Drew Powers 2-10/+18
2021-11-18update depsGravatar Fred K. Schott 5-352/+65
2021-11-18fix #1778Gravatar Fred K. Schott 2-1/+8
2021-11-18Update compiler (#1869)Gravatar Nate Moore 3-11/+6
* chore: update compiler * redeploy * fix(www): ensure www can build * chore: update compiler Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-11-18remove unused remark dependency (#1894)Gravatar Fred K. Schott 2-245/+13
2021-11-18Improve error messages (#1875)Gravatar Drew Powers 39-61/+448
* Fix error handling in correct scope Also improve Vite IDs for better module graph lookups * Improve code frame * Add changeset * maybeLoc can be undefined * Add tests Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2021-11-18pin astro compiler to older versionGravatar Fred K. Schott 2-5/+5
2021-11-18Update yarn.lock to reflect the state of the package.json files (#1892)Gravatar Jonathan Neal 5-1300/+1000
* update dependencies * update file to fix build:all
2021-11-19[ci] yarn formatGravatar FredKSchott 1-5/+3