diff options
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index efce2245d..ac4fd0d79 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -677,7 +677,7 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) #endif // Update NextID to include particles created in this function - int pid; + Long pid; #ifdef _OPENMP #pragma omp critical (add_plasma_nextid) #endif @@ -685,7 +685,7 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) pid = ParticleType::NextID(); ParticleType::NextID(pid+max_new_particles); } - WarpXUtilMsg::AlwaysAssert(static_cast<int>(pid + max_new_particles) > 0, + WarpXUtilMsg::AlwaysAssert(static_cast<Long>(pid + max_new_particles) < LastParticleID, "ERROR: overflow on particle id numbers"); const int cpuid = ParallelDescriptor::MyProc(); |