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_3/limadv.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_3/limadv.F90

    r2633 r2636  
    2121   USE in_out_manager   ! I/O manager 
    2222   USE prtctl           ! Print control 
     23   USE lib_mpp          ! MPP library 
    2324 
    2425   IMPLICIT NONE 
     
    7576 
    7677      IF( wrk_in_use(2, 11,12,13,14,15,16,17,18,19,20,21) ) THEN 
    77          CALL ctl_stop( 'lim_adv_x : requested workspace arrays unavailable.' )   ;   RETURN 
    78       END IF 
     78         CALL ctl_stop('lim_adv_x: requested workspace arrays unavailable')   ;   RETURN 
     79      ENDIF 
    7980 
    8081      ! Limitation of moments.                                            
     
    223224      ENDIF 
    224225      ! 
    225       IF( wrk_not_released(2, 11,12,13,14,15,16,17,18,19,20,21) ) THEN 
    226          CALL ctl_stop( 'lim_adv_x : failed to release workspace arrays.' ) 
    227       END IF 
     226      IF( wrk_not_released(2, 11,12,13,14,15,16,17,18,19,20,21) )    & 
     227          CALL ctl_stop('lim_adv_x : failed to release workspace arrays') 
    228228      ! 
    229229   END SUBROUTINE lim_adv_x 
     
    263263      !--------------------------------------------------------------------- 
    264264 
    265       IF(wrk_in_use(2, 11,12,13,14,15,16,17,18,19,20,21) ) THEN 
    266          CALL ctl_stop( 'lim_adv_y : requested workspace arrays unavailable.' )   ;   RETURN 
    267       END IF 
     265      IF( wrk_in_use(2, 11,12,13,14,15,16,17,18,19,20,21) ) THEN 
     266         CALL ctl_stop('lim_adv_y : requested workspace arrays unavailable')   ;   RETURN 
     267      ENDIF 
    268268 
    269269      ! Limitation of moments. 
     
    413413      ENDIF 
    414414      ! 
    415       IF( wrk_not_released(2, 11,12,13,14,15,16,17,18,19,20,21) ) THEN 
    416          CALL ctl_stop( 'lim_adv_y : failed to release workspace arrays.' ) 
    417       END IF 
     415      IF( wrk_not_released(2, 11,12,13,14,15,16,17,18,19,20,21) )    & 
     416         CALL ctl_stop('lim_adv_y: failed to release workspace arrays') 
    418417      ! 
    419418   END SUBROUTINE lim_adv_y 
Note: See TracChangeset for help on using the changeset viewer.