Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Dec 31, 2023
1 parent d09f803 commit 3e5d6a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ amrex::Real interp_to_slice (int i, int j,
int const iz = static_cast<int>(std::floor(z));
Real const w = z - Real(iz);
#if (AMREX_SPACEDIM == 1)
amrex::ignore_unused(i,j);
amrex::ignore_unused(i,j,src,w);
amrex::Abort("interp_to_slice: 1D not supported");
return 0;
#elif (AMREX_SPACEDIM == 2)
Expand Down
4 changes: 1 addition & 3 deletions Source/Particles/PhysicalParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,7 @@ PhysicalParticleContainer::SplitParticles (int lev)
RealVector psplit_x, psplit_y, psplit_z, psplit_w;
RealVector psplit_ux, psplit_uy, psplit_uz;
long np_split_to_add = 0;
long np_split;
long np_split = 2*AMREX_SPACEDIM;
if(split_type==0)
{
#if defined(WARPX_DIM_3D)
Expand All @@ -2311,8 +2311,6 @@ PhysicalParticleContainer::SplitParticles (int lev)
#else
np_split = 2;
#endif
} else {
np_split = 2*AMREX_SPACEDIM;
}

// Loop over particle interator
Expand Down

0 comments on commit 3e5d6a1

Please sign in to comment.