aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/ParticleBuffer.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/ParticleBuffer.H')
-rw-r--r--Source/Particles/ParticleBuffer.H33
1 files changed, 0 insertions, 33 deletions
diff --git a/Source/Particles/ParticleBuffer.H b/Source/Particles/ParticleBuffer.H
deleted file mode 100644
index 50bcf1129..000000000
--- a/Source/Particles/ParticleBuffer.H
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Copyright 2021 Andrew Myers
- *
- * This file is part of WarpX.
- *
- * License: BSD-3-Clause-LBNL
- */
-#ifndef PARTICLEBUFFER_H_
-#define PARTICLEBUFFER_H_
-
-#include "Particles/MultiParticleContainer.H"
-#include "WarpX.H"
-
-#include <AMReX_AmrParticles.H>
-
-namespace ParticleBuffer {
- template <template<class> class Allocator>
- using BufferType = amrex::AmrParticleContainer<0, 0, PIdx::nattribs, 0, Allocator>;
-
- template <template<class> class Allocator>
- BufferType<Allocator> getTmpPC (const WarpXParticleContainer* pc)
- {
- BufferType<Allocator> tmp(&WarpX::GetInstance());
- // add runtime real comps to tmp
- for (int ic = 0; ic < pc->NumRuntimeRealComps(); ++ic) { tmp.AddRealComp(false); }
-
- // add runtime int comps to tmp
- for (int ic = 0; ic < pc->NumRuntimeIntComps(); ++ic) { tmp.AddIntComp(false); }
-
- return tmp;
- }
-}
-
-#endif /*PARTICLEBUFFER_H_*/