Skip to content

Commit

Permalink
add special named flag for invalid particles
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Jan 5, 2024
1 parent f1ec8df commit bf08a27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Particle/AMReX_Particle.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ namespace amrex {

namespace
{
/** Used for 64bit Long particle Ids as in AoS layout */
/** Special flags used for 64-bit Long particle Ids */
namespace LongParticleIds {
constexpr Long GhostParticleID = 549755813887L; // 2**39-1
constexpr Long VirtualParticleID = GhostParticleID - 1;
constexpr Long LastParticleID = GhostParticleID - 2;
constexpr Long DoSplitParticleID = GhostParticleID - 3;
constexpr Long NoSplitParticleID = GhostParticleID - 4;
constexpr Long InvalidParticleID = 16777216;
}

using namespace LongParticleIds;
Expand Down

0 comments on commit bf08a27

Please sign in to comment.