Skip to content

Commit 42e39f3

Browse files
committed
FEAT: fill ghostcells with values to allow good math
1 parent f2dac4d commit 42e39f3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/advance.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ bool advance(Planets &planet,
144144

145145
}
146146

147-
148147
// advect in the 1st and 2nd dimensions (horizontal), but only if
149148
// we have those dimensions:
150149
if (gGrid.get_HasXdim() || gGrid.get_HasYdim()) {
@@ -155,6 +154,12 @@ bool advance(Planets &planet,
155154
neutrals.advect_horizontal(gGrid, time);
156155
didWork = neutrals.check_for_nonfinites("Geo Grid: After Horizontal Advection");
157156
ionsMag.exchange_old(mGrid);
157+
fill_horizontal_ghostcels(neutralsMag.temperature_scgc, mGrid.get_nGCs());
158+
159+
//for (int iSpecies = 0; iSpecies < neutralsMag.nSpecies; iSpecies++)
160+
// fill_horizontal_ghostcels(neutralsMag.species[iSpecies].density_scgc,
161+
// mGrid.get_nGCs());
162+
158163
//neutralsMag.exchange_old(mGrid);
159164
}
160165

0 commit comments

Comments
 (0)