Skip to content

Commit

Permalink
Fixes related to the enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Sep 23, 2024
1 parent 59fc8f0 commit 0973a4e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Examples/Tests/pec/inputs_test_2d_pec_field_insulator
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ geometry.prob_lo = 0. 2.e-2 # physical domain
geometry.prob_hi = 1.e-2 3.e-2

# Boundary condition
boundary.field_lo = neumann periodic
boundary.field_hi = pec_insulator periodic
boundary.field_lo = neumann periodic
boundary.field_hi = PECInsulator periodic

warpx.serialize_initial_conditions = 1

Expand Down
4 changes: 2 additions & 2 deletions Source/BoundaryConditions/PEC_Insulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ namespace
// Loop over sides, iside = -1 (lo), iside = +1 (hi)
for (int iside = -1; iside <= +1; iside += 2) {
bool const isPEC_InsulatorBoundary = ( (iside == -1)
? fbndry_lo[idim] == FieldBoundaryType::PEC_Insulator
: fbndry_hi[idim] == FieldBoundaryType::PEC_Insulator );
? fbndry_lo[idim] == FieldBoundaryType::PECInsulator
: fbndry_hi[idim] == FieldBoundaryType::PECInsulator );
if (isPEC_InsulatorBoundary) {
isInsulatorBoundary = ( (iside == -1)
? is_insulator_lo[idim] == 1
Expand Down
4 changes: 2 additions & 2 deletions Source/BoundaryConditions/WarpXFieldBoundaries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void WarpX::ApplyEfieldBoundary(const int lev, PatchType patch_type)
}
}

if (::isAnyBoundary<FieldBoundaryType::PEC_Insulator>(field_boundary_lo, field_boundary_hi)) {
if (::isAnyBoundary<FieldBoundaryType::PECInsulator>(field_boundary_lo, field_boundary_hi)) {
amrex::Real const tnew = gett_new(lev);
if (patch_type == PatchType::fine) {
pec_insulator_boundary->ApplyPEC_InsulatortoEfield(
Expand Down Expand Up @@ -167,7 +167,7 @@ void WarpX::ApplyBfieldBoundary (const int lev, PatchType patch_type, DtType a_d
}
}

if (::isAnyBoundary<FieldBoundaryType::PEC_Insulator>(field_boundary_lo, field_boundary_hi)) {
if (::isAnyBoundary<FieldBoundaryType::PECInsulator>(field_boundary_lo, field_boundary_hi)) {
amrex::Real const tnew = gett_new(lev);
if (patch_type == PatchType::fine) {
pec_insulator_boundary->ApplyPEC_InsulatortoBfield( {
Expand Down
2 changes: 1 addition & 1 deletion Source/Utils/WarpXAlgorithmSelection.H
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ AMREX_ENUM(FieldBoundaryType,
Open, // Used in the Integrated Green Function Poisson solver
// Note that the solver implicitely assumes open BCs:
// no need to enforce them separately
PEC_Insulator // Mixed boundary with PEC and insulator
PECInsulator, // Mixed boundary with PEC and insulator
Default = PML);

/** Particle boundary conditions at the domain boundary
Expand Down

0 comments on commit 0973a4e

Please sign in to comment.