@@ -121,7 +121,7 @@ void RadiationMonteCarlo::operator() (
121121 // double* chi = &( particles.chi(0));
122122
123123 // Reinitialize the cumulative radiated energy for the current thread
124- this -> radiated_energy = 0 .;
124+ radiated_energy_ = 0 .;
125125
126126 // _______________________________________________________________
127127 // Computation
@@ -135,7 +135,7 @@ void RadiationMonteCarlo::operator() (
135135 mc_it_nb = 0 ;
136136
137137 // Monte-Carlo Manager inside the time step
138- while ((local_it_time < dt )
138+ while ((local_it_time < dt_ )
139139 &&(mc_it_nb < max_monte_carlo_iterations_))
140140 {
141141
@@ -145,7 +145,7 @@ void RadiationMonteCarlo::operator() (
145145 + momentum[2 ][ipart]*momentum[2 ][ipart]);
146146
147147 // Computation of the Lorentz invariant quantum parameter
148- particle_chi = Radiation::compute_chipa (charge_over_mass2,
148+ particle_chi = Radiation::computeParticleChi (charge_over_mass2,
149149 momentum[0 ][ipart],momentum[1 ][ipart],momentum[2 ][ipart],
150150 gamma,
151151 (*(Ex+ipart-ipart_ref)),(*(Ey+ipart-ipart_ref)),(*(Ez+ipart-ipart_ref)),
@@ -178,7 +178,7 @@ void RadiationMonteCarlo::operator() (
178178 // Time to discontinuous emission
179179 // If this time is > the remaining iteration time,
180180 // we have a synchronization
181- emission_time = std::min (tau[ipart]/temp, dt - local_it_time);
181+ emission_time = std::min (tau[ipart]/temp, dt_ - local_it_time);
182182
183183 // Update of the optical depth
184184 tau[ipart] -= temp*emission_time;
@@ -221,7 +221,7 @@ void RadiationMonteCarlo::operator() (
221221 {
222222
223223 // Remaining time of the iteration
224- emission_time = dt - local_it_time;
224+ emission_time = dt_ - local_it_time;
225225
226226 // Radiated energy during emission_time
227227 cont_rad_energy =
@@ -236,18 +236,18 @@ void RadiationMonteCarlo::operator() (
236236 }
237237
238238 // Incrementation of the radiated energy cumulative parameter
239- radiated_energy += weight[ipart]*(gamma - sqrt (1.0
239+ radiated_energy_ += weight[ipart]*(gamma - sqrt (1.0
240240 + momentum[0 ][ipart]*momentum[0 ][ipart]
241241 + momentum[1 ][ipart]*momentum[1 ][ipart]
242242 + momentum[2 ][ipart]*momentum[2 ][ipart]));
243243
244244 // End for this particle
245- local_it_time = dt ;
245+ local_it_time = dt_ ;
246246 }
247247 // No emission since particle_chi is too low
248248 else // if (particle_chi < RadiationTables.get_chipa_radiation_threshold())
249249 {
250- local_it_time = dt ;
250+ local_it_time = dt_ ;
251251 }
252252
253253 }
@@ -389,6 +389,6 @@ void RadiationMonteCarlo::photon_emission(int ipart,
389389 gammaph = gammapa - sqrt (1.0 + momentum[0 ][ipart]*momentum[0 ][ipart]
390390 + momentum[1 ][ipart]*momentum[1 ][ipart]
391391 + momentum[2 ][ipart]*momentum[2 ][ipart]);
392- radiated_energy += weight[ipart]*gammaph;
392+ radiated_energy_ += weight[ipart]*gammaph;
393393 }
394394}
0 commit comments