aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/ElectrostaticSolver.cpp
diff options
context:
space:
mode:
authorGravatar Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> 2022-11-07 20:30:31 -0800
committerGravatar GitHub <noreply@github.com> 2022-11-07 20:30:31 -0800
commitbf535730cb6c170394da8375887b3ae57ad6ecf5 (patch)
treede7b2122acbc7e40d5f97c11afa779be689985c9 /Source/FieldSolver/ElectrostaticSolver.cpp
parentada6fc49cf16f40d1764d3a95c8338126360f329 (diff)
downloadWarpX-bf535730cb6c170394da8375887b3ae57ad6ecf5.tar.gz
WarpX-bf535730cb6c170394da8375887b3ae57ad6ecf5.tar.zst
WarpX-bf535730cb6c170394da8375887b3ae57ad6ecf5.zip
Allow `None` for Maxwell solver (#3504)
* Add "None" as an option for the Maxwell solver * fixed some of the reasons for failing CI tests * no longer pass `do_electrostatic` to `GuardCellManager` * renamed `MaxwellSolverAlgo` to `ElectromagneticSolverAlgo` * rename `do_electrostatic` to `electrostatic_solver_id` * rename `maxwell_solver_id` to `electromagnetic_solver_id` * changes requested during PR review * remove `do_no_deposit` from tests without field evolution * Fix doc-string in `GuardCellManager.H` Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com>
Diffstat (limited to 'Source/FieldSolver/ElectrostaticSolver.cpp')
-rw-r--r--Source/FieldSolver/ElectrostaticSolver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/FieldSolver/ElectrostaticSolver.cpp b/Source/FieldSolver/ElectrostaticSolver.cpp
index 103fff131..c227506f6 100644
--- a/Source/FieldSolver/ElectrostaticSolver.cpp
+++ b/Source/FieldSolver/ElectrostaticSolver.cpp
@@ -69,7 +69,7 @@ WarpX::ComputeSpaceChargeField (bool const reset_fields)
}
}
- if (do_electrostatic == ElectrostaticSolverAlgo::LabFrame) {
+ if (electrostatic_solver_id == ElectrostaticSolverAlgo::LabFrame) {
AddSpaceChargeFieldLabFrame();
}
else {
@@ -79,13 +79,13 @@ WarpX::ComputeSpaceChargeField (bool const reset_fields)
for (int ispecies=0; ispecies<mypc->nSpecies(); ispecies++){
WarpXParticleContainer& species = mypc->GetParticleContainer(ispecies);
if (species.initialize_self_fields ||
- (do_electrostatic == ElectrostaticSolverAlgo::Relativistic)) {
+ (electrostatic_solver_id == ElectrostaticSolverAlgo::Relativistic)) {
AddSpaceChargeField(species);
}
}
// Add the field due to the boundary potentials
- if (do_electrostatic == ElectrostaticSolverAlgo::Relativistic){
+ if (electrostatic_solver_id == ElectrostaticSolverAlgo::Relativistic){
AddBoundaryField();
}
}
@@ -311,7 +311,7 @@ WarpX::computePhi (const amrex::Vector<std::unique_ptr<amrex::MultiFab> >& rho,
#if defined(AMREX_USE_EB)
// EB: use AMReX to directly calculate the electric field since with EB's the
// simple finite difference scheme in WarpX::computeE sometimes fails
- if (do_electrostatic == ElectrostaticSolverAlgo::LabFrame)
+ if (electrostatic_solver_id == ElectrostaticSolverAlgo::LabFrame)
{
// TODO: maybe make this a helper function or pass Efield_fp directly
amrex::Vector<