aboutsummaryrefslogtreecommitdiff
path: root/Source/ParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2018-12-07 17:06:44 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2018-12-07 17:06:44 -0800
commitb4a5d3be50c2db2209608904bdccdabe8684c7fb (patch)
tree17c093963dbf83bbb3ca77ae33b8f2f5f41495ce /Source/ParticleContainer.cpp
parentd2382f76ca954761ab985e4e31c8589057f15894 (diff)
parenta4673497ba6ddae4be1a47b9f390fcc626c48df8 (diff)
downloadWarpX-b4a5d3be50c2db2209608904bdccdabe8684c7fb.tar.gz
WarpX-b4a5d3be50c2db2209608904bdccdabe8684c7fb.tar.zst
WarpX-b4a5d3be50c2db2209608904bdccdabe8684c7fb.zip
Merge branch 'dev' into picmi_diagnostics
Diffstat (limited to 'Source/ParticleContainer.cpp')
-rw-r--r--Source/ParticleContainer.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/ParticleContainer.cpp b/Source/ParticleContainer.cpp
index 75c13d793..8aac692d6 100644
--- a/Source/ParticleContainer.cpp
+++ b/Source/ParticleContainer.cpp
@@ -69,8 +69,8 @@ MultiParticleContainer::ReadParameters ()
}
}
}
- pp.query("use_fdtd_nci_corr", use_fdtd_nci_corr);
- pp.query("l_lower_order_in_v", l_lower_order_in_v);
+ pp.query("use_fdtd_nci_corr", WarpX::use_fdtd_nci_corr);
+ pp.query("l_lower_order_in_v", WarpX::l_lower_order_in_v);
initialized = true;
}
}
@@ -261,6 +261,14 @@ MultiParticleContainer::GetChargeDensity (int lev, bool local)
}
void
+MultiParticleContainer::SortParticlesByCell ()
+{
+ for (auto& pc : allcontainers) {
+ pc->SortParticlesByCell();
+ }
+}
+
+void
MultiParticleContainer::Redistribute ()
{
for (auto& pc : allcontainers) {