Skip to content

Commit

Permalink
Use previous criterion to update EB
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe committed Jan 18, 2025
1 parent 4969716 commit 6fa77bd
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions Source/Initialization/WarpXInitData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1264,22 +1264,13 @@ void WarpX::InitializeEBGridData (int lev)
// Compute additional quantities required for the ECT solver
MarkExtensionCells();
ComputeFaceExtensions();
// Mark on which grid points E should be updated
MarkUpdateECellsECT( m_eb_update_E[lev], edge_lengths_lev );
// Mark on which grid points B should be updated
MarkUpdateBCellsECT( m_eb_update_B[lev], face_areas_lev, edge_lengths_lev);
} else {
// Mark on which grid points E should be updated (stair-case approximation)
MarkUpdateCellsStairCase(
m_eb_update_E[lev],
m_fields.get_alldirs(FieldType::Efield_fp, lev),
eb_fact );
// Mark on which grid points B should be updated (stair-case approximation)
MarkUpdateCellsStairCase(
m_eb_update_B[lev],
m_fields.get_alldirs(FieldType::Bfield_fp, lev),
eb_fact );
}

// Mark on which grid points E should be updated
MarkUpdateECellsECT( m_eb_update_E[lev], edge_lengths_lev );
// Mark on which grid points B should be updated
MarkUpdateBCellsECT( m_eb_update_B[lev], face_areas_lev, edge_lengths_lev);

}

ComputeDistanceToEB();
Expand Down

0 comments on commit 6fa77bd

Please sign in to comment.