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 --- Source/WarpX.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Source/WarpX.cpp') diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index a6db21881..2fc6fabc6 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -1271,8 +1271,8 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm if ( fft_periodic_single_box == false ) { realspace_ba.grow(1, ngE[1]); // add guard cells only in z } - spectral_solver_fp[lev] = std::make_unique( realspace_ba, dm, - n_rz_azimuthal_modes, noz_fft, do_nodal, m_v_galilean, dx_vect, dt[lev], lev, update_with_rho ); + spectral_solver_fp[lev] = std::make_unique( lev, realspace_ba, dm, + n_rz_azimuthal_modes, noz_fft, do_nodal, m_v_galilean, dx_vect, dt[lev], update_with_rho ); if (use_kspace_filter) { spectral_solver_fp[lev]->InitFilter(filter_npass_each_dir, use_filter_compensation); } @@ -1281,7 +1281,7 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm realspace_ba.grow(ngE); // add guard cells } bool const pml_flag_false = false; - spectral_solver_fp[lev] = std::make_unique( realspace_ba, dm, + spectral_solver_fp[lev] = std::make_unique( lev, realspace_ba, dm, nox_fft, noy_fft, noz_fft, do_nodal, m_v_galilean, m_v_comoving, dx_vect, dt[lev], pml_flag_false, fft_periodic_single_box, update_with_rho, fft_do_time_averaging ); # endif @@ -1404,15 +1404,15 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm // Define spectral solver # ifdef WARPX_DIM_RZ c_realspace_ba.grow(1, ngE[1]); // add guard cells only in z - spectral_solver_cp[lev] = std::make_unique( c_realspace_ba, dm, - n_rz_azimuthal_modes, noz_fft, do_nodal, m_v_galilean, cdx_vect, dt[lev], lev, update_with_rho ); + spectral_solver_cp[lev] = std::make_unique( lev, c_realspace_ba, dm, + n_rz_azimuthal_modes, noz_fft, do_nodal, m_v_galilean, cdx_vect, dt[lev], update_with_rho ); if (use_kspace_filter) { spectral_solver_cp[lev]->InitFilter(filter_npass_each_dir, use_filter_compensation); } # else c_realspace_ba.grow(ngE); // add guard cells bool const pml_flag_false = false; - spectral_solver_cp[lev] = std::make_unique( c_realspace_ba, dm, + spectral_solver_cp[lev] = std::make_unique( lev, c_realspace_ba, dm, nox_fft, noy_fft, noz_fft, do_nodal, m_v_galilean, m_v_comoving, cdx_vect, dt[lev], pml_flag_false, fft_periodic_single_box, update_with_rho, fft_do_time_averaging ); # endif @@ -1624,7 +1624,7 @@ WarpX::ComputeDivE(amrex::MultiFab& divE, const int lev) { if ( WarpX::maxwell_solver_id == MaxwellSolverAlgo::PSATD ) { #ifdef WARPX_USE_PSATD - spectral_solver_fp[lev]->ComputeSpectralDivE( Efield_aux[lev], divE ); + spectral_solver_fp[lev]->ComputeSpectralDivE( lev, Efield_aux[lev], divE ); #else amrex::Abort("ComputeDivE: PSATD requested but not compiled"); #endif -- cgit v1.2.3