aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Weiqun Zhang <WeiqunZhang@lbl.gov> 2021-07-13 23:04:31 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-13 23:04:31 -0700
commitffb3bb8e0ac21c2489906c1cf51d3f4dae235542 (patch)
tree8632faa062e3e76bfec4cd85671a56514b18b444 /Source/Particles/MultiParticleContainer.cpp
parent40e36e1860015214601d618c9ab847f623328867 (diff)
downloadWarpX-ffb3bb8e0ac21c2489906c1cf51d3f4dae235542.tar.gz
WarpX-ffb3bb8e0ac21c2489906c1cf51d3f4dae235542.tar.zst
WarpX-ffb3bb8e0ac21c2489906c1cf51d3f4dae235542.zip
amrex::Parser (#2063)
* amrex::Parser Replace WarpXParser with amrex::Parser. Roundoff errors are expected because of additional optimization in amrex::Parser. * Reset the Langmuir_multi_psatd_single_precision benchmark due to change in single precision parser * enable Intel oneAPI CI again * Update Source/EmbeddedBoundary/WarpXInitEB.cpp * Replace hard-coded number in ParticleDiag with a constexpr
Diffstat (limited to 'Source/Particles/MultiParticleContainer.cpp')
-rw-r--r--Source/Particles/MultiParticleContainer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp
index 213cdc782..c1b462168 100644
--- a/Source/Particles/MultiParticleContainer.cpp
+++ b/Source/Particles/MultiParticleContainer.cpp
@@ -184,11 +184,11 @@ MultiParticleContainer::ReadParameters ()
str_Bz_ext_particle_function);
// Parser for B_external on the particle
- m_Bx_particle_parser = std::make_unique<ParserWrapper<4>>(
+ m_Bx_particle_parser = std::make_unique<amrex::Parser>(
makeParser(str_Bx_ext_particle_function,{"x","y","z","t"}));
- m_By_particle_parser = std::make_unique<ParserWrapper<4>>(
+ m_By_particle_parser = std::make_unique<amrex::Parser>(
makeParser(str_By_ext_particle_function,{"x","y","z","t"}));
- m_Bz_particle_parser = std::make_unique<ParserWrapper<4>>(
+ m_Bz_particle_parser = std::make_unique<amrex::Parser>(
makeParser(str_Bz_ext_particle_function,{"x","y","z","t"}));
}
@@ -209,11 +209,11 @@ MultiParticleContainer::ReadParameters ()
Store_parserString(pp_particles, "Ez_external_particle_function(x,y,z,t)",
str_Ez_ext_particle_function);
// Parser for E_external on the particle
- m_Ex_particle_parser = std::make_unique<ParserWrapper<4>>(
+ m_Ex_particle_parser = std::make_unique<amrex::Parser>(
makeParser(str_Ex_ext_particle_function,{"x","y","z","t"}));
- m_Ey_particle_parser = std::make_unique<ParserWrapper<4>>(
+ m_Ey_particle_parser = std::make_unique<amrex::Parser>(
makeParser(str_Ey_ext_particle_function,{"x","y","z","t"}));
- m_Ez_particle_parser = std::make_unique<ParserWrapper<4>>(
+ m_Ez_particle_parser = std::make_unique<amrex::Parser>(
makeParser(str_Ez_ext_particle_function,{"x","y","z","t"}));
}