aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Parallelization')
-rw-r--r--Source/Parallelization/GuardCellManager.H10
-rw-r--r--Source/Parallelization/KernelTimer.H7
2 files changed, 15 insertions, 2 deletions
diff --git a/Source/Parallelization/GuardCellManager.H b/Source/Parallelization/GuardCellManager.H
index 79e4f2d8e..182b4aa80 100644
--- a/Source/Parallelization/GuardCellManager.H
+++ b/Source/Parallelization/GuardCellManager.H
@@ -24,11 +24,12 @@ public:
/**
* \brief Initialize number of guard cells depending on the options used.
*
+ * \param dt time step
+ * \param dx cell spacing
* \param do_subcycling bool, whether to use subcycling
* \param do_fdtd_nci_corr bool, whether to use Godfrey NCI corrector
* \param do_nodal bool, whether the field solver is nodal
* \param do_moving_window bool, whether to use moving window
- * \param aux_is_nodal bool, true if the aux grid is nodal
* \param moving_window_dir direction of moving window
* \param nox order of current deposition
* \param nox_fft order of PSATD in x direction
@@ -37,6 +38,13 @@ public:
* \param nci_corr_stencil stencil of NCI corrector
* \param maxwell_solver_id if of Maxwell solver
* \param max_level max level of the simulation
+ * \param v_galilean Velocity used in the Galilean PSATD scheme
+ * \param v_comoving Velocity used in the comoving PSATD scheme
+ * \param safe_guard_cells Run in safe mode, exchanging more guard cells, and more often in the PIC loop (for debugging).
+ * \param do_electrostatic Whether to run in electrostatic mode i.e. solving the Poisson equation instead of the Maxwell equations.
+ * \param do_multi_J Whether to use the multi-J PSATD scheme
+ * \param fft_do_time_averaging Whether to average the E and B field in time (with PSATD) before interpolating them onto the macro-particles
+ * \param ref_ratios mesh refinement ratios between mesh-refinement levels
*/
void Init(
const amrex::Real dt,
diff --git a/Source/Parallelization/KernelTimer.H b/Source/Parallelization/KernelTimer.H
index 9166ecb5f..137bbb99d 100644
--- a/Source/Parallelization/KernelTimer.H
+++ b/Source/Parallelization/KernelTimer.H
@@ -9,6 +9,9 @@
#include "WarpX.H"
+#include <AMReX.H>
+#include <AMReX_REAL.H>
+
// #ifdef WARPX_USE_GPUCLOCK
#include <climits>
@@ -30,7 +33,7 @@ public:
(const bool do_timing, amrex::Real* cost)
: m_do_timing(do_timing)
#else
- (const bool, amrex::Real*)
+ (const bool do_timing, amrex::Real* cost)
#endif
{
#if (defined AMREX_USE_GPU)
@@ -51,6 +54,8 @@ public:
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( m_do_timing == false,
"`algo.load_balance_costs_update = gpuclock` requires to compile with `-DWarpX_GPUCLOCK=ON`.");
# endif // WARPX_USE_GPUCLOCK
+#else // AMREX_USE_GPU
+ amrex::ignore_unused(do_timing, cost);
#endif // AMREX_USE_GPU
}