Skip to content

Commit

Permalink
Correcting indexing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh Natarajan committed Oct 16, 2024
1 parent 196cc36 commit 7175691
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ GeneralAD::update (const Real& dt_advance,
},
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
{
w_vel(i,j,k) = w_vel(i,j,k) + (generalAD_array(i,j-1,k,2) + generalAD_array(i,j,k,2))/2.0*dt_advance;
w_vel(i,j,k) = w_vel(i,j,k) + (generalAD_array(i,j,k-1,2) + generalAD_array(i,j,k,2))/2.0*dt_advance;
});

}
Expand Down

0 comments on commit 7175691

Please sign in to comment.