Skip to content

Commit 9b51482

Browse files
committed
Fix a bug in sycl fft c2c
1 parent 3fb5506 commit 9b51482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/FFT/AMReX_FFT_Helper.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ struct Plan
402402
strides[0] = 0;
403403
strides[ndims] = 1;
404404
for (int i = ndims-1; i >= 1; --i) {
405-
strides[i] = strides[i+1] * len[ndims-1-i];
405+
strides[i] = strides[i+1] * len[i];
406406
}
407407
#ifndef AMREX_USE_MKL_DFTI_2024
408408
pp->set_value(oneapi::mkl::dft::config_param::FWD_STRIDES, strides);

0 commit comments

Comments
 (0)