From 76ebee96eeabd7336c49c1250e255db59ec0d971 Mon Sep 17 00:00:00 2001 From: Michael E Rowan <38045958+mrowan137@users.noreply.github.com> Date: Tue, 16 Mar 2021 11:35:07 -0700 Subject: Add timers in routines that depend on cell-related work (#1692) * Add timers * eol * AtomicAdd * lev argument for getCosts * style * style * wip * eol * .ipynb * passing down lev * eol * passing lev * eol * Update Source/Particles/Collision/PairWiseCoulombCollision.cpp Co-authored-by: Axel Huebl * Add for QED and ionization routines * eol * remove unneeded * mfi-->pti * move cost * eol Co-authored-by: Axel Huebl --- .../SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H index 3e909145d..598046042 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H @@ -42,7 +42,8 @@ class SpectralBaseAlgorithm * the three components of the current density * \param[in] rho Unique pointer to \c MultiFab storing the charge density */ - virtual void CurrentCorrection (SpectralFieldData& field_data, + virtual void CurrentCorrection (const int lev, + SpectralFieldData& field_data, std::array,3>& current, const std::unique_ptr& rho) = 0; @@ -55,13 +56,15 @@ class SpectralBaseAlgorithm * \param[in,out] current Array of unique pointers to \c MultiFab storing * the three components of the current density */ - virtual void VayDeposition (SpectralFieldData& field_data, + virtual void VayDeposition (const int lev, + SpectralFieldData& field_data, std::array,3>& current) = 0; /** * \brief Compute spectral divergence of E */ - void ComputeSpectralDivE ( SpectralFieldData& field_data, + void ComputeSpectralDivE ( const int lev, + SpectralFieldData& field_data, const std::array,3>& Efield, amrex::MultiFab& divE ); -- cgit v1.2.3