Skip to content

Commit 01a05e4

Browse files
lgiacomedpgrote
authored andcommitted
Fixes to the EB init (BLAST-WarpX#2565)
1 parent 709cdb0 commit 01a05e4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Source/Initialization/WarpXInitData.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,14 @@ WarpX::InitLevelData (int lev, Real /*time*/)
486486

487487
#ifdef AMREX_USE_EB
488488
if(lev==maxLevel()) {
489-
if (WarpX::maxwell_solver_id == MaxwellSolverAlgo::Yee
490-
|| WarpX::maxwell_solver_id == MaxwellSolverAlgo::ECT) {
489+
if (WarpX::maxwell_solver_id == MaxwellSolverAlgo::Yee ||
490+
WarpX::maxwell_solver_id == MaxwellSolverAlgo::CKC ||
491+
WarpX::maxwell_solver_id == MaxwellSolverAlgo::ECT) {
492+
491493
ComputeEdgeLengths();
492494
ComputeFaceAreas();
493495
ScaleEdges();
494496
ScaleAreas();
495-
ComputeDistanceToEB();
496497

497498
const auto &period = Geom(lev).periodicity();
498499
WarpXCommUtil::FillBoundary(*m_edge_lengths[lev][0], guard_cells.ng_alloc_EB, period);
@@ -516,6 +517,9 @@ WarpX::InitLevelData (int lev, Real /*time*/)
516517
ComputeFaceExtensions();
517518
}
518519
}
520+
521+
ComputeDistanceToEB();
522+
519523
}
520524
#endif
521525

0 commit comments

Comments
 (0)