Skip to content

Commit 13e8c67

Browse files
committed
correct index for populating turbfluc on high boundaries
1 parent 2a001f0 commit 13e8c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/BCfill.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ struct PCHypFillExtDir
115115
}
116116

117117
// turbulent fluctuations
118-
if (m_do_turb_inflow && (iv[idir] == domlo[idir] - 1)) {
118+
if (m_do_turb_inflow && (iv[idir] == domhi[idir] + 1)) {
119119
for (int n = 0; n < AMREX_SPACEDIM; n++) {
120120
turb_fluc[n] = dest(iv, UMX + n);
121121
}

0 commit comments

Comments
 (0)