We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd4ba86 commit 153f223Copy full SHA for 153f223
1 file changed
src/dmstag.jl
@@ -341,16 +341,17 @@ function DMStagGetIndices(dm::PetscDM{PetscLib}) where {PetscLib}
341
Diff = c.lower - gc.lower;
342
Start = c.lower + Diff;
343
End = Start + CartesianIndex(c.size) - CartesianIndex(1,1,1) ;
344
+ Nextra = c.nextra
345
346
# Note that we add the shift for julia/petsc consistency
347
shift = 0;
348
center = ( x= Start[1]:End[1],
349
y= Start[2]:End[2],
350
z= Start[3]:End[3] )
351
- vertex = ( x= Start[1]:End[1]+1 ,
352
- y= Start[2]:End[2]+1 ,
353
- z= Start[3]:End[3]+1 )
+ vertex = ( x= Start[1]:End[1]+Nextra[1] ,
+ y= Start[2]:End[2]+Nextra[2] ,
354
+ z= Start[3]:End[3]+Nextra[3] )
355
356
return (center=center, vertex=vertex)
357
0 commit comments