Skip to content

Commit 97dafb1

Browse files
committed
Set ng_fieldgather = ng_alloc_EB
1 parent 2fd719c commit 97dafb1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Source/Parallelization/GuardCellManager.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,14 @@ guardCellManager::Init (
375375
// for the field solve too.
376376
ng_FieldGather = ng_FieldGather.max(ng_FieldSolver);
377377

378+
if (evolve_scheme == EvolveScheme::ThetaImplicitEM ||
379+
evolve_scheme == EvolveScheme::SemiImplicitEM ||
380+
evolve_scheme == EvolveScheme::StrangImplicitSpectralEM) {
381+
// For these implicit schemes, the number of ghost cells
382+
// needs to be consistent for EB, J, and the field gather
383+
ng_FieldGather = ng_alloc_EB;
384+
}
385+
378386
if (do_moving_window){
379387
ng_MovingWindow[moving_window_dir] = 1;
380388
}

0 commit comments

Comments
 (0)