diff options
Diffstat (limited to 'Source/Particles/Deposition/ChargeDeposition.H')
-rw-r--r-- | Source/Particles/Deposition/ChargeDeposition.H | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Particles/Deposition/ChargeDeposition.H b/Source/Particles/Deposition/ChargeDeposition.H index 7f6cccea5..88d952919 100644 --- a/Source/Particles/Deposition/ChargeDeposition.H +++ b/Source/Particles/Deposition/ChargeDeposition.H @@ -8,7 +8,7 @@ #ifndef CHARGEDEPOSITION_H_ #define CHARGEDEPOSITION_H_ -#include "Parallelization/KernelTimer.H" +#include "ablastr/parallelization/KernelTimer.H" #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" #include "Utils/WarpXAlgorithmSelection.H" @@ -98,8 +98,9 @@ void doChargeDepositionShapeN (const GetParticlePosition& GetPosition, np_to_depose, [=] AMREX_GPU_DEVICE (long ip) { #if defined(WARPX_USE_GPUCLOCK) - KernelTimer kernelTimer(cost && load_balance_costs_update_algo - == LoadBalanceCostsUpdateAlgo::GpuClock, cost_real); + const auto KernelTimer = ablastr::parallelization::KernelTimer( + cost && (load_balance_costs_update_algo == LoadBalanceCostsUpdateAlgo::GpuClock), + cost_real); #endif // --- Get particle quantities amrex::Real wq = q*wp[ip]*invvol; |