From 5208f4ea967212178a8524a531cf2329fcb33318 Mon Sep 17 00:00:00 2001 From: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Date: Wed, 19 May 2021 13:32:08 -0700 Subject: Set guard cells for allocation using field solver stencil and particle shape factor (#1969) --- .../FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H') diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H index 5bd7e88bc..68ecdfc60 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H @@ -55,6 +55,14 @@ struct CartesianNodalAlgorithm { return delta_t; } + /** + * \brief Returns maximum number of guard cells required by the field-solve + */ + static amrex::IntVect GetMaxGuardCell () { + // The nodal solver requires one guard cell in each dimension + return (amrex::IntVect(AMREX_D_DECL(1,1,1))); + } + /** * Perform derivative along x * (For a solver on a staggered grid, `UpwardDx` and `DownwardDx` take into -- cgit v1.2.3