File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments