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/LIM_SRC_2/limwri_2.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/LIM_SRC_2/limwri_2.F90

    r2633 r2636  
    2626   USE ice_2 
    2727 
     28   USE dianam          ! build name of file (routine) 
    2829   USE lbclnk 
    29    USE dianam          ! build name of file (routine) 
    3030   USE in_out_manager 
     31   USE lib_mpp         ! MPP library 
    3132   USE iom 
    3233   USE ioipsl 
     
    6970CONTAINS 
    7071 
    71    FUNCTION lim_wri_alloc_2() 
     72   INTEGER FUNCTION lim_wri_alloc_2() 
    7273      !!------------------------------------------------------------------- 
    7374      !!                  ***   ROUTINE lim_wri_alloc_2  *** 
    7475      !!------------------------------------------------------------------- 
    75       IMPLICIT none 
    76       INTEGER :: lim_wri_alloc_2 
    77       !!------------------------------------------------------------------- 
    78       ! 
    7976      ALLOCATE( ndex51(jpij), zcmo(jpi,jpj,jpnoumax), STAT=lim_wri_alloc_2) 
    8077      ! 
     
    115112      !!------------------------------------------------------------------- 
    116113 
    117       IF(wrk_in_use(2, 1))THEN 
    118          CALL ctl_stop('lim_wri_2 : requested workspace array unavailable.') 
    119          RETURN 
    120       END IF 
     114      IF( wrk_in_use(2, 1) ) THEN 
     115         CALL ctl_stop('lim_wri_2 : requested workspace array unavailable')   ;   RETURN 
     116      ENDIF 
    121117                                                 !--------------------! 
    122118      IF( kt == nit000 ) THEN                    !   Initialisation   ! 
     
    211207      IF( ( nn_fsbc * niter ) >= nitend )   CALL histclo( nice )  
    212208 
    213       IF(wrk_not_released(2, 1))THEN 
    214          CALL ctl_stop('lim_wri_2 : failed to release workspace array.') 
    215       END IF 
    216  
     209      IF( wrk_not_released(2, 1) )   CALL ctl_stop('lim_wri_2 : failed to release workspace array.') 
     210      ! 
    217211   END SUBROUTINE lim_wri_2 
    218212      
Note: See TracChangeset for help on using the changeset viewer.