Skip to content

Commit

Permalink
Fix bug in ABLFieldInitFile.cpp (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrenceccheung authored Oct 10, 2023
1 parent 0fdf99b commit 163c568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amr-wind/wind_energy/ABLFieldInitFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bool ABLFieldInitFile::operator()(
amrex::ParallelFor(
vbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept {
// The counter to go from 3d to 1d vector
auto idx = (i - i0) * ct2 * ct1 + (j - j0) * ct1 + (k - k0);
auto idx = (i - i0) * ct2 * ct1 + (j - j0) * ct2 + (k - k0);
// Pass values from temporary array to the velocity field
velocity(i, j, k, 0) = uvel_dptr[idx];
velocity(i, j, k, 1) = vvel_dptr[idx];
Expand Down

0 comments on commit 163c568

Please sign in to comment.