Skip to content

Commit

Permalink
fixup! ice_dyn_vp: initialize residual vector to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-blain committed Aug 12, 2022
1 parent a1f6364 commit be571c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cicecore/cicedynB/dynamics/ice_dyn_vp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,8 @@ subroutine anderson_solver (icellt , icellu , &

! Initialization
res_num = 0
Fx = c0
Fy = c0

!$OMP PARALLEL DO PRIVATE(iblk)
do iblk = 1, nblocks
Expand Down Expand Up @@ -874,8 +876,6 @@ subroutine anderson_solver (icellt , icellu , &
vrel (:,:,iblk))

! Compute nonlinear residual norm (PDE residual)
Fx = c0
Fy = c0
call matvec (nx_block , ny_block , &
icellu (iblk) , icellt (iblk), &
indxui (:,iblk) , indxuj (:,iblk), &
Expand Down

0 comments on commit be571c5

Please sign in to comment.