Skip to content

Commit 57f121f

Browse files
authored
Fix facediv_int z indexing (#5239)
1 parent 7b569be commit 57f121f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/AmrCore/AMReX_Interp_3D_C.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ facediv_int (int ci, int cj, int ck, int nf,
223223
{
224224
const int fi = ci*ratio[0];
225225
const int fj = cj*ratio[1];
226-
const int fk = ck*ratio[1];
226+
const int fk = ck*ratio[2];
227227

228228
// References to fine exterior values needed for interior calculation.
229229
const Real u000 = fine[0](fi, fj , fk , nf);

0 commit comments

Comments
 (0)