aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Gather/GetExternalFields.cpp
diff options
context:
space:
mode:
authorGravatar Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> 2022-03-10 11:58:22 -0800
committerGravatar GitHub <noreply@github.com> 2022-03-10 11:58:22 -0800
commitda837aaffd1d2fbce14a6bea4a3a38331a56df72 (patch)
treedbc0f06ddbcbac13419e653c9f402f979cba2fd6 /Source/Particles/Gather/GetExternalFields.cpp
parent8b8760d2cb9d288b3c6f3f52c2bf2536f232afc0 (diff)
downloadWarpX-da837aaffd1d2fbce14a6bea4a3a38331a56df72.tar.gz
WarpX-da837aaffd1d2fbce14a6bea4a3a38331a56df72.tar.zst
WarpX-da837aaffd1d2fbce14a6bea4a3a38331a56df72.zip
fix ambiguity in Parser from amrex and ExternalFieldInitType (#2955)
Diffstat (limited to 'Source/Particles/Gather/GetExternalFields.cpp')
-rw-r--r--Source/Particles/Gather/GetExternalFields.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/Gather/GetExternalFields.cpp b/Source/Particles/Gather/GetExternalFields.cpp
index 8d226badb..8c57ab9cc 100644
--- a/Source/Particles/Gather/GetExternalFields.cpp
+++ b/Source/Particles/Gather/GetExternalFields.cpp
@@ -52,7 +52,7 @@ GetExternalEBField::GetExternalEBField (const WarpXParIter& a_pti, int a_offset)
if (mypc.m_E_ext_particle_s == "parse_e_ext_particle_function")
{
- m_Etype = Parser;
+ m_Etype = ExternalFieldInitType::Parser;
m_Exfield_partparser = mypc.m_Ex_particle_parser->compile<4>();
m_Eyfield_partparser = mypc.m_Ey_particle_parser->compile<4>();
m_Ezfield_partparser = mypc.m_Ez_particle_parser->compile<4>();
@@ -60,7 +60,7 @@ GetExternalEBField::GetExternalEBField (const WarpXParIter& a_pti, int a_offset)
if (mypc.m_B_ext_particle_s == "parse_b_ext_particle_function")
{
- m_Btype = Parser;
+ m_Btype = ExternalFieldInitType::Parser;
m_Bxfield_partparser = mypc.m_Bx_particle_parser->compile<4>();
m_Byfield_partparser = mypc.m_By_particle_parser->compile<4>();
m_Bzfield_partparser = mypc.m_Bz_particle_parser->compile<4>();