Skip to content

Commit

Permalink
Fix calls within EffectivePotentialES::ComputeSpaceChargeField
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Jan 29, 2025
1 parent fb0dc3c commit 57e8e22
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ void EffectivePotentialES::ComputeSpaceChargeField (
using ablastr::fields::MultiLevelVectorField;
using warpx::fields::FieldType;

bool const skip_level_0 = true;

// grab the simulation fields
const MultiLevelScalarField rho_fp = fields.get_mr_levels(FieldType::rho_fp, max_level);
const MultiLevelScalarField rho_cp = fields.get_mr_levels(FieldType::rho_cp, max_level);
const MultiLevelScalarField rho_cp = fields.get_mr_levels(FieldType::rho_cp, max_level, skip_level_0);
const MultiLevelScalarField phi_fp = fields.get_mr_levels(FieldType::phi_fp, max_level);
const MultiLevelVectorField Efield_fp = fields.get_mr_levels_alldirs(FieldType::Efield_fp, max_level);

Expand Down

0 comments on commit 57e8e22

Please sign in to comment.