diff options
author | 2019-08-21 15:14:52 -0700 | |
---|---|---|
committer | 2019-08-21 15:14:52 -0700 | |
commit | f61b98426d5cdea5f9dea390bc57d8f281069e3e (patch) | |
tree | e227e18cdd491269a3c63f2c0db6681034e61c33 /Source/Particles/WarpXParticleContainer.cpp | |
parent | 583b6bc96169940795ceb9253389888d061e7d34 (diff) | |
download | WarpX-f61b98426d5cdea5f9dea390bc57d8f281069e3e.tar.gz WarpX-f61b98426d5cdea5f9dea390bc57d8f281069e3e.tar.zst WarpX-f61b98426d5cdea5f9dea390bc57d8f281069e3e.zip |
Add profilers around current deposition
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index b580bdb2c..646644f94 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -326,6 +326,8 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti, const Real stagger_shift = j_is_nodal ? 0.0 : 0.5; BL_PROFILE_VAR_NS("PPC::Evolve::Accumulate", blp_accumulate); + BL_PROFILE_VAR_NS("PPC::CurrentDeposition", blp_deposit); + // Get tile box where current is deposited. // The tile box is different when depositing in the buffers (depos_lev<lev) @@ -388,6 +390,7 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti, // Better for memory? worth trying? const Dim3 lo = lbound(tilebox); + BL_PROFILE_VAR_START(blp_deposit); if (WarpX::current_deposition_algo == CurrentDepositionAlgo::Esirkepov) { if (WarpX::nox == 1){ doEsirkepovDepositionShapeN<1>( @@ -426,6 +429,7 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti, stagger_shift, q); } } + BL_PROFILE_VAR_STOP(blp_deposit); #ifndef AMREX_USE_GPU BL_PROFILE_VAR_START(blp_accumulate); |