Skip to content

Commit 3b4cac6

Browse files
committed
Renaming weights to variance reduced factors
1 parent 7126c65 commit 3b4cac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libmfpic/ParticleOperations.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ IntegratedCharge ParticleOperations::assembleCharge(
206206
finite_element_space.GetElementVDofs(elem_id, vector_dofs);
207207

208208
double low_fidelity_pdf_value = low_fidelity_operations.evaluatePDF(low_fidelity_state,particle_position,particle_velocity,particle.element,particle_species);
209-
double weights = (1 - low_fidelity_pdf_value / particle.pdf_value);
209+
double noise_reducing_factor = (1 - low_fidelity_pdf_value / particle.pdf_value);
210210

211211
for (int i = 0; i < fe->GetDof(); i++) {
212-
charge_state.addIntegratedChargeValue(vector_dofs[i],particle.weight * particle_charge * psi_i(i) * weights);
212+
charge_state.addIntegratedChargeValue(vector_dofs[i],particle.weight * particle_charge * psi_i(i) * noise_reducing_factor);
213213
}
214214
}
215215

0 commit comments

Comments
 (0)