New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2636 for branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SOL/solsor.F90 – NEMO

Ignore:
Timestamp:
2011-03-01T20:04:06+01:00 (13 years ago)
Author:
gm
Message:

dynamic mem: #785 ; move ctl_stop & warn in lib_mpp to avoid a circular dependency + ctl_stop improvment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SOL/solsor.F90

    r2633 r2636  
    3232   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    3333   !! $Id$  
    34    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     34   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    3535   !!---------------------------------------------------------------------- 
    36  
    3736CONTAINS 
    3837       
     
    5857      !!                Beare and Stevens 1997 Ann. Geophysicae 15, 1369-1377 
    5958      !!---------------------------------------------------------------------- 
    60       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    61       USE wrk_nemo, ONLY: ztab => wrk_2d_1 
     59      USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
     60      USE wrk_nemo, ONLY:   ztab => wrk_2d_1    ! 2D workspace 
    6261      !! 
    6362      INTEGER, INTENT(inout) ::   kindic   ! solver indicator, < 0 if the convergence is not reached: 
    6463      !                                    ! the model is stopped in step (set to zero before the call of solsor) 
    6564      !! 
    66       INTEGER  ::   ji, jj, jn               ! dummy loop indices 
    67       INTEGER  ::   ishift, icount 
    68       INTEGER  ::   ijmppodd, ijmppeven, ijpr2d 
    69       REAL(wp) ::   ztmp, zres, zres2 
     65      INTEGER  ::   ji, jj, jn       ! dummy loop indices 
     66      INTEGER  ::   ishift, icount, ijmppodd, ijmppeven, ijpr2d   ! local integers 
     67      REAL(wp) ::   ztmp, zres, zres2                             ! local scalars 
    7068      !!---------------------------------------------------------------------- 
    7169       
    7270      IF( wrk_in_use(2, 1) )THEN 
    73          CALL ctl_stop('sol_sor: requested workspace array is unavailable') 
    74          RETURN 
    75       END IF 
     71         CALL ctl_stop('sol_sor: requested workspace array is unavailable')   ;   RETURN 
     72      ENDIF 
    7673 
    7774      ijmppeven = MOD( nimpp+njmpp+jpr2di+jpr2dj   , 2 ) 
     
    171168      CALL lbc_lnk_e( gcx, c_solver_pt, 1. )    ! boundary conditions 
    172169      !  
    173       IF( wrk_not_released(2, 1) )THEN 
    174          CALL ctl_stop('sol_sor: failed to release workspace array') 
    175       END IF 
     170      IF( wrk_not_released(2, 1) )   CALL ctl_stop('sol_sor: failed to release workspace array') 
    176171      ! 
    177172   END SUBROUTINE sol_sor 
Note: See TracChangeset for help on using the changeset viewer.