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/DYN/dynnxt.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/DYN/dynnxt.F90

    r2636 r2690  
    5050   !! * Substitutions 
    5151#  include "domzgr_substitute.h90" 
    52    !!------------------------------------------------------------------------- 
     52   !!---------------------------------------------------------------------- 
    5353   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    5454   !! $Id$  
    55    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    56    !!------------------------------------------------------------------------- 
    57  
     55   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     56   !!---------------------------------------------------------------------- 
    5857CONTAINS 
    5958 
     
    9291      !!               un,vn   now horizontal velocity of next time-step 
    9392      !!---------------------------------------------------------------------- 
    94       USE oce, ONLY :   ze3u_f => ta   ! use ta as 3D workspace 
    95       USE oce, ONLY :   ze3v_f => sa   ! use sa as 3D workspace 
    96       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    97       USE wrk_nemo, ONLY:   zs_t => wrk_2d_1, zs_u_1 => wrk_2d_2, & 
    98                           zs_v_1 => wrk_2d_3 
     93      USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
     94      USE oce     , ONLY:   ze3u_f => ta       , ze3v_f => sa       ! (ta,sa) used as 3D workspace 
     95      USE wrk_nemo, ONLY:   zs_t   => wrk_2d_1 , zs_u_1 => wrk_2d_2 , zs_v_1 => wrk_2d_3 
     96      ! 
    9997      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index 
    100       !! 
     98      ! 
    10199      INTEGER  ::   ji, jj, jk   ! dummy loop indices 
    102100#if ! defined key_dynspg_flt 
    103101      REAL(wp) ::   z2dt         ! temporary scalar 
    104102#endif 
    105       REAL(wp) ::   zue3a , zue3n , zue3b    ! temporary scalar 
    106       REAL(wp) ::   zve3a , zve3n , zve3b    !    -         - 
    107       REAL(wp) ::   zuf   , zvf              !    -         -  
    108       REAL(wp) ::   zec                      !    -         -  
    109       REAL(wp) ::   zv_t_ij  , zv_t_ip1j     !     -        - 
    110       REAL(wp) ::   zv_t_ijp1                !     -        - 
     103      REAL(wp) ::   zue3a, zue3n, zue3b, zuf    ! local scalars 
     104      REAL(wp) ::   zve3a, zve3n, zve3b, zvf    !   -      - 
     105      REAL(wp) ::   zec, zv_t_ij, zv_t_ip1j, zv_t_ijp1 
    111106      !!---------------------------------------------------------------------- 
    112107 
     
    163158      CALL obc_dyn( kt ) 
    164159      ! 
    165       IF ( lk_dynspg_exp .OR. lk_dynspg_ts ) THEN 
     160      IF( .NOT. lk_dynspg_flt ) THEN 
    166161         ! Flather boundary condition : - Update sea surface height on each open boundary 
    167          !                                       sshn   (= after ssh   ) for explicit case 
    168          !                                       sshn_b (= after ssha_b) for time-splitting case 
     162         !                                       sshn   (= after ssh   ) for explicit case (lk_dynspg_exp=T) 
     163         !                                       sshn_b (= after ssha_b) for time-splitting case (lk_dynspg_ts=T) 
    169164         !                              - Correct the barotropic velocities 
    170165         CALL obc_dyn_bt( kt ) 
     
    180175# elif defined key_bdy  
    181176      !                                !* BDY open boundaries 
    182       IF( lk_dynspg_exp .OR. lk_dynspg_ts ) THEN       ! except for filtered option 
    183          CALL bdy_dyn_frs( kt ) 
    184       ENDIF 
     177      IF( .NOT. lk_dynspg_flt )   CALL bdy_dyn_frs( kt ) 
    185178# endif 
    186179      ! 
     
    325318         &                       tab3d_2=vn, clinfo2=' Vn: '       , mask2=vmask ) 
    326319      !  
    327       IF( wrk_not_released(2, 1,2,3) )   CALL ctl_stop('dyn_nxt: failed to release workspace arrays.') 
     320      IF( wrk_not_released(2, 1,2,3) )   CALL ctl_stop('dyn_nxt: failed to release workspace arrays') 
    328321      ! 
    329322   END SUBROUTINE dyn_nxt 
Note: See TracChangeset for help on using the changeset viewer.