aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpX.H')
-rw-r--r--Source/WarpX.H26
1 files changed, 8 insertions, 18 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H
index 460c017d3..2fc5b89b7 100644
--- a/Source/WarpX.H
+++ b/Source/WarpX.H
@@ -336,6 +336,9 @@ public:
//! If true, all fields are evaluated on a nodal grid and all MultiFabs have a nodal index type
static int do_nodal;
+ // Global rho nodal flag to know about rho index type when rho MultiFab is not allocated
+ amrex::IntVect m_rho_nodal_flag;
+
std::array<const amrex::MultiFab* const, 3>
get_array_Bfield_aux (const int lev) const {
return {
@@ -944,24 +947,6 @@ private:
void AddRhoFromFineLevelandSumBoundary (int lev, int icomp, int ncomp);
void NodalSyncRho (int lev, PatchType patch_type, int icomp, int ncomp);
- /**
- * \brief Private function for current correction in Fourier space
- * (equation (19) of https://doi.org/10.1016/j.jcp.2013.03.010):
- * loops over the MR levels and applies the correction on the fine and coarse
- * patches (calls the virtual method \c CurrentCorrection of the spectral
- * algorithm in use, via the public interface defined in the class SpectralSolver).
- */
- void CurrentCorrection ();
-
- /**
- * \brief Private function for Vay deposition in Fourier space
- * (equations (20)-(24) of https://doi.org/10.1016/j.jcp.2013.03.010):
- * loops over the MR levels and applies the correction on the fine and coarse
- * patches (calls the virtual method \c VayDeposition of the spectral
- * algorithm in use, via the public interface defined in the class SpectralSolver).
- */
- void VayDeposition ();
-
void ReadParameters ();
/** This function queries deprecated input parameters and abort
@@ -1463,6 +1448,11 @@ private:
void PSATDCurrentCorrection ();
/**
+ * \brief Vay deposition in Fourier space (https://doi.org/10.1016/j.jcp.2013.03.010)
+ */
+ void PSATDVayDeposition ();
+
+ /**
* \brief Update all necessary fields in spectral space
*/
void PSATDPushSpectralFields ();