diff options
author | 2020-10-23 12:41:46 -0700 | |
---|---|---|
committer | 2020-10-23 12:41:46 -0700 | |
commit | eb160d079e86176a2f42e431f1a6178a32075fed (patch) | |
tree | 5a9c785887eae56fd2f19df0ed0e18d46c71d1cb /Source/Particles/WarpXParticleContainer.cpp | |
parent | bc3bf28155c3257e7fd6386bd43a9f9fd52b7287 (diff) | |
download | WarpX-eb160d079e86176a2f42e431f1a6178a32075fed.tar.gz WarpX-eb160d079e86176a2f42e431f1a6178a32075fed.tar.zst WarpX-eb160d079e86176a2f42e431f1a6178a32075fed.zip |
Fix Warning for SigmaBox FabFactory (#1466)
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 2374703fc..63b1125c2 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -272,14 +272,17 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti, tilebox = amrex::coarsen(pti.tilebox(),ref_ratio); } +#ifndef AMREX_USE_GPU // Staggered tile boxes (different in each direction) Box tbx = convert( tilebox, jx->ixType().toIntVect() ); Box tby = convert( tilebox, jy->ixType().toIntVect() ); Box tbz = convert( tilebox, jz->ixType().toIntVect() ); +#endif tilebox.grow(ng_J); #ifdef AMREX_USE_GPU + amrex::ignore_unused(thread_num); // GPU, no tiling: j<xyz>_arr point to the full j<xyz> arrays auto & jx_fab = jx->get(pti); auto & jy_fab = jy->get(pti); @@ -474,14 +477,17 @@ WarpXParticleContainer::DepositCharge (WarpXParIter& pti, RealVector& wp, tilebox = amrex::coarsen(pti.tilebox(),ref_ratio); } +#ifndef AMREX_USE_GPU // Staggered tile box Box tb = amrex::convert( tilebox, rho->ixType().toIntVect() ); +#endif tilebox.grow(ng_rho); const int nc = WarpX::ncomps; #ifdef AMREX_USE_GPU + amrex::ignore_unused(thread_num); // GPU, no tiling: rho_fab points to the full rho array MultiFab rhoi(*rho, amrex::make_alias, icomp*nc, nc); auto & rho_fab = rhoi.get(pti); |