Skip to content

Commit d06d0df

Browse files
authored
fix(par): fix copying array inside a loop
1 parent 2dfcd45 commit d06d0df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Model/Connection/GwfGwfConnection.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ subroutine gwfgwfcon_df(this)
180180

181181
! set defaults
182182
do i = 1, size(this%gwfInterfaceModel%npf%angle1)
183-
this%gwfInterfaceModel%npf%angle1 = 0.0_DP
183+
this%gwfInterfaceModel%npf%angle1(i) = 0.0_DP
184184
end do
185185
do i = 1, size(this%gwfInterfaceModel%npf%angle2)
186-
this%gwfInterfaceModel%npf%angle2 = 0.0_DP
186+
this%gwfInterfaceModel%npf%angle2(i) = 0.0_DP
187187
end do
188188
do i = 1, size(this%gwfInterfaceModel%npf%angle3)
189-
this%gwfInterfaceModel%npf%angle3 = 0.0_DP
189+
this%gwfInterfaceModel%npf%angle3(i) = 0.0_DP
190190
end do
191191

192192
! point X, RHS, IBOUND to connection

0 commit comments

Comments
 (0)