We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 398cfc2 commit 28c7fa7Copy full SHA for 28c7fa7
Src/Base/AMReX_Array4.H
@@ -135,7 +135,7 @@ namespace amrex {
135
#if defined(AMREX_DEBUG) || defined(AMREX_BOUND_CHECK)
136
index_assert(i,j,k,n);
137
#endif
138
- return p[(i-begin.x)+(j-begin.y)*jstride()+(k-begin.z)*kstride()+n*nstride()];
+ return p[(i-begin.x)+Long(len.x)*((j-begin.y)+Long(len.y)*((k-begin.z)+Long(len.z)*n))];
139
}
140
141
template <class U=T, std::enable_if_t<!std::is_void_v<U>,int> = 0>
0 commit comments