diff options
author | 2020-10-26 13:09:50 -0700 | |
---|---|---|
committer | 2020-10-26 13:09:50 -0700 | |
commit | 1140e9f8c3c20c969363dddfc184696f27c2ac72 (patch) | |
tree | 264fb581c547fef4d7774bf622dc9bd1fedb168f /Source/WarpX.H | |
parent | e85b70c01aa81f28958e8d9080a220f06a08250a (diff) | |
download | WarpX-1140e9f8c3c20c969363dddfc184696f27c2ac72.tar.gz WarpX-1140e9f8c3c20c969363dddfc184696f27c2ac72.tar.zst WarpX-1140e9f8c3c20c969363dddfc184696f27c2ac72.zip |
Filter diagnostic rho (#1295)
* First cut of adding filtering of rho diagnostic - not yet working
* Fixed the handling of parallel transfers in RhoFunctor when filtering is turned on
* Fixed end of line space
* In RhoFunctor, only do kspace filter with RZ and PSATD
* PICMI analytic applied fields (#1306)
* PICMI Added applied fields
* PICMI fixed typo in Constants
* Change picmistandard version requirement to 0.0.9
* Increment required picmi version
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
* Updated checksums with filter of diagnostic rho
* Fix comment in rho diagnostic
* Updated LaserIonAcc2d benchmark after filtering rho
* Update galilean_rz_psatd benchmark with filtering of rho
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Diffstat (limited to 'Source/WarpX.H')
-rw-r--r-- | Source/WarpX.H | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H index 68dd45949..928e40b42 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -543,6 +543,8 @@ public: */ void ComputeCostsHeuristic (amrex::Vector<std::unique_ptr<amrex::LayoutData<amrex::Real> > >& costs); + void ApplyFilterandSumBoundaryRho (int lev, int glev, amrex::MultiFab& rho, int icomp, int ncomp); + protected: /** @@ -877,7 +879,18 @@ private: amrex::Vector<std::unique_ptr<SpectralSolver>> spectral_solver_fp; amrex::Vector<std::unique_ptr<SpectralSolver>> spectral_solver_cp; # endif + +public: + +# ifdef WARPX_DIM_RZ + SpectralSolverRZ& +# else + SpectralSolver& +# endif + get_spectral_solver_fp (int lev) {return *spectral_solver_fp[lev];} #endif + +private: amrex::Vector<std::unique_ptr<FiniteDifferenceSolver>> m_fdtd_solver_fp; amrex::Vector<std::unique_ptr<FiniteDifferenceSolver>> m_fdtd_solver_cp; }; |