diff options
Diffstat (limited to 'Source/WarpX.H')
-rw-r--r-- | Source/WarpX.H | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H index da885132d..2effc8a6d 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -323,8 +323,9 @@ public: //! and current onto the lower refinement level instead of the refinement patch itself static int n_current_deposition_buffer; - //! If true, all fields are evaluated on a nodal grid and all MultiFabs have a nodal index type - static bool do_nodal; + //! Integer that corresponds to the type of grid used in the simulation + //! (collocated, staggered, hybrid) + static short grid_type; // Global rho nodal flag to know about rho index type when rho MultiFab is not allocated amrex::IntVect m_rho_nodal_flag; @@ -969,10 +970,9 @@ public: * (up to order \c n_order). * * \param[in] n_order order of the finite-difference approximation - * \param[in] nodal whether the finite-difference approximation is computed - * on a nodal grid or a staggered grid + * \param[in] a_grid_type type of grid (collocated or not) */ - static amrex::Vector<amrex::Real> getFornbergStencilCoefficients(const int n_order, const bool nodal); + static amrex::Vector<amrex::Real> getFornbergStencilCoefficients(const int n_order, const short a_grid_type); // Device vectors of stencil coefficients used for finite-order centering of fields amrex::Gpu::DeviceVector<amrex::Real> device_field_centering_stencil_coeffs_x; @@ -1211,13 +1211,15 @@ private: * \param[in] centering_nox order of the finite-order centering along x * \param[in] centering_noy order of the finite-order centering along y * \param[in] centering_noz order of the finite-order centering along z + * \param[in] a_grid_type type of grid (collocated or not) */ void AllocateCenteringCoefficients (amrex::Gpu::DeviceVector<amrex::Real>& device_centering_stencil_coeffs_x, amrex::Gpu::DeviceVector<amrex::Real>& device_centering_stencil_coeffs_y, amrex::Gpu::DeviceVector<amrex::Real>& device_centering_stencil_coeffs_z, const int centering_nox, const int centering_noy, - const int centering_noz); + const int centering_noz, + const short a_grid_type); void AllocLevelMFs (int lev, const amrex::BoxArray& ba, const amrex::DistributionMapping& dm, const amrex::IntVect& ngEB, amrex::IntVect& ngJ, |