From 717569111f6c91a29067425cd54fee04191ce11f Mon Sep 17 00:00:00 2001 From: Mahesh Natarajan Date: Wed, 16 Oct 2024 15:15:25 -0700 Subject: [PATCH] Correcting indexing error --- .../GeneralActuatorDisk/ERF_AdvanceGeneralAD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WindFarmParametrization/GeneralActuatorDisk/ERF_AdvanceGeneralAD.cpp b/Source/WindFarmParametrization/GeneralActuatorDisk/ERF_AdvanceGeneralAD.cpp index 032329366..42f9d4be3 100644 --- a/Source/WindFarmParametrization/GeneralActuatorDisk/ERF_AdvanceGeneralAD.cpp +++ b/Source/WindFarmParametrization/GeneralActuatorDisk/ERF_AdvanceGeneralAD.cpp @@ -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; }); }