Commit f8e2376 1 parent 7790292 commit f8e2376 Copy full SHA for f8e2376
File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -590,7 +590,7 @@ WarpX::InitData ()
590
590
WriteUsedInputsFile ();
591
591
592
592
// Run div cleaner here on loaded external fields
593
- if (WarpX::do_divb_cleaning_external ) {
593
+ if (m_do_divb_cleaning_external ) {
594
594
WarpX::ProjectionCleanDivB ();
595
595
}
596
596
Original file line number Diff line number Diff line change @@ -290,10 +290,6 @@ public:
290
290
// ! Solve additional Maxwell equation for G in order to control errors in magnetic Gauss' law
291
291
static bool do_divb_cleaning;
292
292
293
- // ! Solve Poisson equation when loading an external magnetic field to clean divergence
294
- // ! This is useful to remove errors that could lead to non-zero B field divergence
295
- static bool do_divb_cleaning_external;
296
-
297
293
// ! Order of the particle shape factors (splines) along x
298
294
static int nox;
299
295
// ! Order of the particle shape factors (splines) along y
@@ -1582,6 +1578,10 @@ private:
1582
1578
int noy_fft = 16 ;
1583
1579
int noz_fft = 16 ;
1584
1580
1581
+ // ! Solve Poisson equation when loading an external magnetic field to clean divergence
1582
+ // ! This is useful to remove errors that could lead to non-zero B field divergence
1583
+ bool m_do_divb_cleaning_external = false ;
1584
+
1585
1585
// ! Domain decomposition on Level 0
1586
1586
amrex::IntVect numprocs{0 };
1587
1587
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ int WarpX::max_particle_its_in_implicit_scheme = 21;
118
118
ParticleReal WarpX::particle_tol_in_implicit_scheme = 1 .e-10 ;
119
119
bool WarpX::do_dive_cleaning = false ;
120
120
bool WarpX::do_divb_cleaning = false ;
121
- bool WarpX::do_divb_cleaning_external = false ;
122
121
bool WarpX::do_single_precision_comms = false ;
123
122
124
123
bool WarpX::do_shared_mem_charge_deposition = false ;
@@ -1064,9 +1063,9 @@ WarpX::ReadParameters ()
1064
1063
|| WarpX::electrostatic_solver_id == ElectrostaticSolverAlgo::LabFrameElectroMagnetostatic)
1065
1064
&& WarpX::poisson_solver_id == PoissonSolverAlgo::Multigrid)))
1066
1065
{
1067
- do_divb_cleaning_external = true ;
1066
+ m_do_divb_cleaning_external = true ;
1068
1067
}
1069
- pp_warpx.query (" do_divb_cleaning_external" , do_divb_cleaning_external );
1068
+ pp_warpx.query (" do_divb_cleaning_external" , m_do_divb_cleaning_external );
1070
1069
1071
1070
// If true, the current is deposited on a nodal grid and centered onto
1072
1071
// a staggered grid. Setting warpx.do_current_centering=1 makes sense
You can’t perform that action at this time.
0 commit comments