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 1566 for trunk/NEMO/OPA_SRC/DYN/dynspg_oce.F90 – NEMO

Ignore:
Timestamp:
2009-07-31T16:34:08+02:00 (15 years ago)
Author:
rblod
Message:

Cosmetic changes: suppress useless variables and code review of the code changed when suppressing rigid-lid, see ticket #508

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DYN/dynspg_oce.F90

    r1528 r1566  
    11MODULE dynspg_oce 
    2    !!---------------------------------------------------------------------- 
     2   !!====================================================================== 
    33   !!                       ***  MODULE dynspg_oce  *** 
    44   !!        
    5    !! ** Purpose :   Define in memory all the ocean space domain variables 
     5   !! Ocean dynamics: Define in memory surface pressure gradient variables 
     6   !!====================================================================== 
     7   !! History :  1.0  !  05-12  (C. Talandier, G. Madec)  Original code 
     8   !!            3.2  ! 2009-07  (R. Benshila) Suppression of rigid-lid option 
    69   !!---------------------------------------------------------------------- 
    7    !! Modules used 
    8    USE par_oce          ! ocean parameters 
     10   USE par_oce        ! ocean parameters 
    911 
    1012   IMPLICIT NONE 
    1113   PUBLIC            
    12    !!---------------------------------------------------------------------- 
    13    !!  OPA 9.0 , LOCEAN-IPSL (2005)  
    14    !! $Id$  
    15    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    16    !!---------------------------------------------------------------------- 
    1714 
    18    !! Surface pressure gradient logicals 
    19    !! ---------------------------------- 
    20 #if   defined key_dynspg_exp   ||  defined key_esopa 
    21    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_exp = .TRUE.  !: Explicit free surface flag 
     15   !                                                       !!! Surface pressure gradient logicals 
     16#if   defined key_dynspg_exp  ||  defined key_esopa 
     17   LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_exp = .TRUE.   !: Explicit free surface flag 
    2218#else 
    23    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_exp = .FALSE. !: Explicit free surface flag 
     19   LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_exp = .FALSE.  !: Explicit free surface flag 
    2420#endif 
    2521#if   defined key_dynspg_ts   ||  defined key_esopa 
    26    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_ts  = .TRUE.  !: Free surface with time splitting flag 
     22   LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_ts  = .TRUE.   !: Free surface with time splitting flag 
    2723#else 
    28    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_ts  = .FALSE. !: Free surface with time splitting flag 
     24   LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_ts  = .FALSE.  !: Free surface with time splitting flag 
    2925#endif 
    3026#if   defined key_dynspg_flt  ||  defined key_esopa 
    31    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_flt = .TRUE.  !: Filtered free surface cst volume flag 
     27   LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_flt = .TRUE.   !: Filtered free surface cst volume flag 
    3228#else 
    33    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_flt = .FALSE. !: Filtered free surface cst volume flag 
     29   LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_flt = .FALSE.  !: Filtered free surface cst volume flag 
    3430#endif 
    3531 
    36 #if   defined key_dynspg_ts   ||  defined key_vvl   ||  defined key_esopa 
    37   !! Time splitting variables   ! variables of the explicit barotropic loop 
    38   !! ------------------------ 
    39      REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: ua_e  , va_e             ! barotropic velocities (after) 
    40      REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshn_e, ssha_e, sshn_b   ! sea surface heigth (now, after, average) 
    41      REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: hu_e  , hv_e             ! depth arrays for the barotropic solution 
    42      REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: hur_e , hvr_e            ! inverse of depth arrays  
     32!!gm BUG : always required in _ts, only  some of them in vvl 
     33!    #if   defined key_dynspg_ts   ||   defined key_esopa 
     34!!gm end 
     35#if   defined key_dynspg_ts   ||   defined key_vvl   ||   defined key_esopa 
     36  !                                                                !!! Time splitting scheme (sub-time step variables) 
     37   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: ua_e  , va_e             ! barotropic velocities (after) 
     38   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshn_e, ssha_e, sshn_b   ! sea surface heigth (now, after, average) 
     39   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: hu_e  , hv_e             ! now ocean depth ( = Ho+sshn_e ) 
     40   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: hur_e , hvr_e            ! inverse of the now depth ( = 1/(Ho+sshn_e) ) 
    4341#endif 
    4442 
    4543   !!---------------------------------------------------------------------- 
    46  
     44   !! NEMO/OPA 3.2 , LODYC-IPSL  (2009) 
     45   !! $Id$  
     46   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)  
     47   !!====================================================================== 
    4748END MODULE dynspg_oce 
Note: See TracChangeset for help on using the changeset viewer.