Skip to content

Commit

Permalink
Add default move constructors / assignment operators for other pc typ…
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers authored Jul 16, 2021
1 parent 6e27136 commit 98c9e71
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Src/AmrCore/AMReX_AmrParticles.H
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ public:

~AmrParticleContainer () {}

AmrParticleContainer ( const AmrParticleContainer &) = delete;
AmrParticleContainer& operator= ( const AmrParticleContainer & ) = delete;

AmrParticleContainer ( AmrParticleContainer && ) = default;
AmrParticleContainer& operator= ( AmrParticleContainer && ) = default;
};

class AmrTracerParticleContainer
Expand All @@ -287,6 +292,12 @@ public:
}

~AmrTracerParticleContainer () {}

AmrTracerParticleContainer ( const AmrTracerParticleContainer &) = delete;
AmrTracerParticleContainer& operator= ( const AmrTracerParticleContainer & ) = delete;

AmrTracerParticleContainer ( AmrTracerParticleContainer && ) = default;
AmrTracerParticleContainer& operator= ( AmrTracerParticleContainer && ) = default;
};

}
Expand Down
6 changes: 6 additions & 0 deletions Src/Particle/AMReX_NeighborParticles.H
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ public:
const Vector<int> & rr,
int nneighbor);

NeighborParticleContainer ( const NeighborParticleContainer &) = delete;
NeighborParticleContainer& operator= ( const NeighborParticleContainer & ) = delete;

NeighborParticleContainer ( NeighborParticleContainer && ) = default;
NeighborParticleContainer& operator= ( NeighborParticleContainer && ) = default;

///
/// Regrid functions
///
Expand Down
6 changes: 6 additions & 0 deletions Src/Particle/AMReX_TracerParticles.H
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public:

~TracerParticleContainer () {}

TracerParticleContainer ( const TracerParticleContainer &) = delete;
TracerParticleContainer& operator= ( const TracerParticleContainer & ) = delete;

TracerParticleContainer ( TracerParticleContainer && ) = default;
TracerParticleContainer& operator= ( TracerParticleContainer && ) = default;

void AdvectWithUmac (MultiFab* umac, int level, Real dt);

void AdvectWithUcc (const MultiFab& ucc, int level, Real dt);
Expand Down

0 comments on commit 98c9e71

Please sign in to comment.