@@ -77,9 +77,9 @@ public:
7777 using Real3 = Vec3<real_t >;
7878
7979 BoundaryInjector (ParticleGenerator particle_generator, Grid_t& grid)
80- : particle_generator {particle_generator},
81- advance {grid.dt },
82- prts_per_unit_density {grid.norm .prts_per_unit_density }
80+ : particle_generator_ {particle_generator},
81+ advance_ {grid.dt },
82+ prts_per_unit_density_ {grid.norm .prts_per_unit_density }
8383 {}
8484
8585 // / Injects particles at the lower y-bound as if there were a population of
@@ -117,7 +117,7 @@ public:
117117 for (Int3 initial_idx : VecRange (ilo, ihi)) {
118118 Real3 cell_corner = Double3 (initial_idx) * grid.domain .dx ;
119119 int n_prts_to_try_inject =
120- get_n_in_cell (1.0 , prts_per_unit_density , true );
120+ get_n_in_cell (1.0 , prts_per_unit_density_ , true );
121121
122122 for (int prt_count = 0 ; prt_count < n_prts_to_try_inject; prt_count++) {
123123 // FIXME #948112531345 (also see the other FIXMEs with this id)
@@ -127,11 +127,11 @@ public:
127127 // boundary condition is "open", outflowing particles cause the same
128128 // problem, and there's nothing to be done about that.
129129 psc::particle::Inject prt =
130- particle_generator .get (cell_corner, grid.domain .dx );
130+ particle_generator_ .get (cell_corner, grid.domain .dx );
131131
132- Real3 v = advance .calc_v (prt.u );
132+ Real3 v = advance_ .calc_v (prt.u );
133133 Real3 initial_x = prt.x ;
134- advance .push_x (prt.x , v);
134+ advance_ .push_x (prt.x , v);
135135
136136 if (prt.x [INJECT_DIM_IDX_ ] < 0.0 ) {
137137 // don't inject a particle that fails to enter the patch
@@ -160,7 +160,7 @@ public:
160160 }
161161
162162private:
163- ParticleGenerator particle_generator ;
164- AdvanceParticle_t advance ;
165- real_t prts_per_unit_density ;
163+ ParticleGenerator particle_generator_ ;
164+ AdvanceParticle_t advance_ ;
165+ real_t prts_per_unit_density_ ;
166166};
0 commit comments