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 2690 for branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_eiv.F90 – NEMO

Ignore:
Timestamp:
2011-03-15T16:27:46+01:00 (13 years ago)
Author:
gm
Message:

dynamic mem: #785 ; homogeneization of the coding style associated with dyn allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_eiv.F90

    r2633 r2690  
    2525   USE phycst          ! physical constants 
    2626   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    27    USE diaar5, ONLY :   lk_diaar5 
     27   USE diaar5, ONLY:   lk_diaar5 
    2828# endif   
    2929 
     
    4141   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    4242   !! $Id$ 
    43    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    44    !!---------------------------------------------------------------------- 
    45  
     43   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     44   !!---------------------------------------------------------------------- 
    4645CONTAINS 
    4746 
     
    6463      !! ** Action  : - add to p.n the eiv component 
    6564      !!---------------------------------------------------------------------- 
    66       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    67       USE wrk_nemo, ONLY: zu_eiv => wrk_2d_1, zv_eiv => wrk_2d_2, & 
    68                           zw_eiv => wrk_2d_3 
    69 # if defined key_diaeiv  
    70       USE wrk_nemo, ONLY: z2d => wrk_2d_4 
     65      USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
     66      USE wrk_nemo, ONLY:   zu_eiv => wrk_2d_1 , zv_eiv => wrk_2d_2 , zw_eiv => wrk_2d_3   ! 2D workspace 
     67# if defined key_diaeiv  
     68      USE wrk_nemo, ONLY:   z2d => wrk_2d_4   ! 2D workspace 
    7169#endif 
    7270      INTEGER                         , INTENT(in   ) ::   kt       ! ocean time-step index 
     
    8583 
    8684# if defined key_diaeiv  
    87       IF(wrk_in_use(2, 1,2,3,4))THEN 
    88 #else 
    89       IF(wrk_in_use(2, 1,2,3))THEN 
    90 #endif 
    91          CALL ctl_stop('tra_adv_eiv: ERROR: requested workspace arrays are unavailable.') 
    92          RETURN 
    93       END IF 
     85      IF( wrk_in_use(2, 1,2,3,4) ) THEN 
     86# else 
     87      IF( wrk_in_use(2, 1,2,3)   ) THEN 
     88# endif 
     89         CALL ctl_stop('tra_adv_eiv: requested workspace arrays are unavailable')   ;   RETURN 
     90      ENDIF 
    9491 
    9592      IF( kt == nit000 )  THEN 
     
    194191      !  
    195192# if defined key_diaeiv  
    196       IF(wrk_not_released(2, 1,2,3,4))THEN 
    197 #else 
    198       IF(wrk_not_released(2, 1,2,3))THEN 
    199 #endif 
    200          CALL ctl_stop('tra_adv_eiv: ERROR: failed to release workspace arrays.') 
    201       END IF 
     193      IF( wrk_not_released(2, 1,2,3,4) )   CALL ctl_stop('tra_adv_eiv: failed to release workspace arrays') 
     194# else 
     195      IF( wrk_not_released(2, 1,2,3)   )   CALL ctl_stop('tra_adv_eiv: failed to release workspace arrays') 
     196# endif 
    202197      ! 
    203198    END SUBROUTINE tra_adv_eiv 
     
    212207      CHARACTER(len=3) ::   cdtype 
    213208      REAL, DIMENSION(:,:,:) ::   pun, pvn, pwn 
    214       WRITE(*,*) 'tra_adv_eiv: You should not have seen this print! error?', kt, cdtype 
    215       WRITE(*,*) 'tra_adv_eiv: You should not have seen this print! error?', pun(1,1,1), pvn(1,1,1), pwn(1,1,1) 
     209      WRITE(*,*) 'tra_adv_eiv: You should not have seen this print! error?', kt, cdtype, pun(1,1,1), pvn(1,1,1), pwn(1,1,1) 
    216210   END SUBROUTINE tra_adv_eiv 
    217211#endif 
Note: See TracChangeset for help on using the changeset viewer.