aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.H
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-08 11:00:08 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-08 11:00:08 -0700
commitc7a56a07ee33f5d1cce29719a946036e36b5897c (patch)
treefc74bf7601aaeb2b6f8e22723096e1a3179a5015 /Source/Particles/WarpXParticleContainer.H
parente84c1f7dd3459c934b6ac322a4da7bae411a9aed (diff)
downloadWarpX-c7a56a07ee33f5d1cce29719a946036e36b5897c.tar.gz
WarpX-c7a56a07ee33f5d1cce29719a946036e36b5897c.tar.zst
WarpX-c7a56a07ee33f5d1cce29719a946036e36b5897c.zip
change ionization level from Real to Int
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.H')
-rw-r--r--Source/Particles/WarpXParticleContainer.H9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H
index 204031497..2613be167 100644
--- a/Source/Particles/WarpXParticleContainer.H
+++ b/Source/Particles/WarpXParticleContainer.H
@@ -76,6 +76,10 @@ public:
RealVector& GetAttribs (int comp) {
return GetStructOfArrays().GetRealData(comp);
}
+
+ IntVector& GetiAttribs (int comp) {
+ return GetStructOfArrays().GetIntData(comp);
+ }
};
class MultiParticleContainer;
@@ -180,7 +184,7 @@ public:
RealVector& uxp,
RealVector& uyp,
RealVector& uzp,
- amrex::Real* ion_lev,
+ int* ion_lev,
amrex::MultiFab* jx,
amrex::MultiFab* jy,
amrex::MultiFab* jz,
@@ -268,7 +272,7 @@ public:
void AddIntComp (const std::string& name, bool comm=true)
{
- particle_comps[name] = NumIntComps();
+ particle_icomps[name] = NumIntComps();
AddIntComp(comm);
}
@@ -285,6 +289,7 @@ public:
protected:
std::map<std::string, int> particle_comps;
+ std::map<std::string, int> particle_icomps;
int species_id;