aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2021-05-13 13:17:12 -0700
committerGravatar GitHub <noreply@github.com> 2021-05-13 13:17:12 -0700
commit0f49efc0d32297a0510979850d141c58a3e43c5d (patch)
tree37d37b02e4c20d63557ff8d467f80a86132867d5 /Source/Particles/MultiParticleContainer.cpp
parent9f28da17cdc42efbbe14bb21a3b1ab52ee556f68 (diff)
downloadWarpX-0f49efc0d32297a0510979850d141c58a3e43c5d.tar.gz
WarpX-0f49efc0d32297a0510979850d141c58a3e43c5d.tar.zst
WarpX-0f49efc0d32297a0510979850d141c58a3e43c5d.zip
Implemented query and getArrWithParser (#1936)
* Implemented query and getArrWithParser * Updated parameters.rst regarding expressions for multiple floats
Diffstat (limited to 'Source/Particles/MultiParticleContainer.cpp')
-rw-r--r--Source/Particles/MultiParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp
index 4f6bdf05c..eb5293bee 100644
--- a/Source/Particles/MultiParticleContainer.cpp
+++ b/Source/Particles/MultiParticleContainer.cpp
@@ -117,13 +117,13 @@ MultiParticleContainer::ReadParameters ()
// then the values for the external B on particles must
// be provided in the input file.
if (m_B_ext_particle_s == "constant")
- pp_particles.getarr("B_external_particle", m_B_external_particle);
+ getArrWithParser(pp_particles, "B_external_particle", m_B_external_particle);
// if the input string for E_external on particles is "constant"
// then the values for the external E on particles must
// be provided in the input file.
if (m_E_ext_particle_s == "constant")
- pp_particles.getarr("E_external_particle", m_E_external_particle);
+ getArrWithParser(pp_particles, "E_external_particle", m_E_external_particle);
// if the input string for B_ext_particle_s is
// "parse_b_ext_particle_function" then the mathematical expression