Skip to content

Commit

Permalink
ice_dyn_vp: remove unused local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-blain committed Jul 15, 2020
1 parent 083b611 commit 71eba9e
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions cicecore/cicedynB/dynamics/ice_dyn_vp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,6 @@ subroutine anderson_solver (icellt, icellu, &
res_diff , & ! difference between current and previous residuals
fpfunc , & ! current value of fixed point function
fpfunc_old , & ! previous value of fixed point function
Fvec , & ! (Fx,Fy) (nonlinear residual) as vector
tmp ! temporary vector for BLAS calls

real (kind=dbl_kind), dimension(ntot,im_andacc) :: &
Expand All @@ -769,7 +768,7 @@ subroutine anderson_solver (icellt, icellu, &
coeffs ! coeffs used to combine previous solutions

real (kind=dbl_kind) :: &
tol , & ! tolerance for fixed point convergence: reltol_andacc * (initial fixed point residual norm)
! tol , & ! tolerance for fixed point convergence: reltol_andacc * (initial fixed point residual norm) [unused for now]
tol_nl , & ! tolerance for nonlinear convergence: reltol_nonlin * (initial nonlinear residual norm)
fpres_norm , & ! norm of current fixed point residual : f(x) = g(x) - x
prog_norm , & ! norm of difference between current and previous solution
Expand Down Expand Up @@ -2771,9 +2770,7 @@ subroutine fgmres (zetaD, &

real (kind=dbl_kind), dimension (nx_block,ny_block,max_blocks) :: &
workspace_x , & ! work vector (x components)
workspace_y , & ! work vector (y components)
Fx , & ! residual vector (x components), Fx = bx - Au (N/m^2)
Fy ! residual vector (y components), Fy = by - Av (N/m^2)
workspace_y ! work vector (y components)

real (kind=dbl_kind), dimension (max_blocks) :: &
norm_squared ! array to accumulate squared norm of grid function over blocks
Expand Down Expand Up @@ -2810,12 +2807,6 @@ subroutine fgmres (zetaD, &

real (kind=dbl_kind) :: relative_tolerance, r0 !phb DESCRIBE if we keep

real (kind=dbl_kind) :: &
local_dot ! local value to accumulate dot product computations

real (kind=dbl_kind), dimension(maxinner) :: &
dotprod_local ! local array to accumulate several dot product computations

character(len=*), parameter :: subname = '(fgmres)'

! Here we go !
Expand Down Expand Up @@ -3172,9 +3163,7 @@ subroutine pgmres (zetaD, &

real (kind=dbl_kind), dimension (nx_block,ny_block,max_blocks) :: &
workspace_x , & ! work vector (x components)
workspace_y , & ! work vector (y components)
Fx , & ! residual vector (x components), Fx = bx - Au (N/m^2)
Fy ! residual vector (y components), Fy = by - Av (N/m^2)
workspace_y ! work vector (y components)

real (kind=dbl_kind), dimension (max_blocks) :: &
norm_squared ! array to accumulate squared norm of grid function over blocks
Expand Down Expand Up @@ -3208,12 +3197,6 @@ subroutine pgmres (zetaD, &

real (kind=dbl_kind) :: relative_tolerance, r0 !phb DESCRIBE if we keep

real (kind=dbl_kind) :: &
local_dot ! local value to accumulate dot product computations

real (kind=dbl_kind), dimension(maxinner) :: &
dotprod_local ! local array to accumulate several dot product computations

character(len=*), parameter :: subname = '(pgmres)'

! Here we go !
Expand Down

0 comments on commit 71eba9e

Please sign in to comment.