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

Ignore:
Timestamp:
2005-12-28T10:25:10+01:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_035 : CT : OBCs adapted to the new surface pressure gradient algorithms

File:
1 edited

Legend:

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

    r359 r367  
    1212   USE oce            ! ocean dynamics and tracers variables 
    1313   USE dom_oce        ! ocean space and time domain variables 
     14   USE obc_oce        ! ocean open boundary conditions 
     15   USE dynspg_oce     ! surface pressure gradient variables 
    1416   USE dynspg_exp     ! surface pressure gradient     (dyn_spg_exp routine) 
    1517   USE dynspg_ts      ! surface pressure gradient     (dyn_spg_ts  routine) 
     
    2729   !! * Accessibility 
    2830   PUBLIC dyn_spg         ! routine called by step module 
    29  
    30    !! * Public variables 
    31 #if   defined key_dynspg_exp   ||  defined key_esopa 
    32    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_exp = .TRUE.  !: Explicit free surface flag 
    33 #else 
    34    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_exp = .FALSE. !: Explicit free surface flag 
    35 #endif 
    36 #if   defined key_dynspg_ts   ||  defined key_esopa 
    37    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_ts  = .TRUE.  !: Free surface with time splitting flag 
    38 #else 
    39    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_ts  = .FALSE. !: Free surface with time splitting flag 
    40 #endif 
    41 #if   defined key_dynspg_flt  ||  defined key_esopa 
    42    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_flt = .TRUE.  !: Filtered free surface cst volume flag 
    43 #else 
    44    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_flt = .FALSE. !: Filtered free surface cst volume flag 
    45 #endif 
    46 #if   defined key_dynspg_rl 
    47    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_rl  = .TRUE.  !: Rigid-lid flag 
    48 #else 
    49    LOGICAL, PUBLIC, PARAMETER ::   lk_dynspg_rl  = .FALSE. !: Rigid-lid flag 
    50 #endif 
    5131 
    5232   !! * module variables 
     
    208188      ENDIF 
    209189 
     190#if key_obc 
     191      ! Conservation of ocean volume (key_dynspg_flt) 
     192      ! --------------------------------------------- 
     193      IF( lk_dynspg_flt ) ln_vol_cst = .true. 
     194 
     195      ! Application of Flather's algorithm at open boundaries 
     196      ! ----------------------------------------------------- 
     197      IF( lk_dynspg_flt ) ln_obc_fla = .false. 
     198      IF( lk_dynspg_exp ) ln_obc_fla = .true. 
     199      IF( lk_dynspg_ts  ) ln_obc_fla = .true. 
     200#endif 
     201 
    210202   END SUBROUTINE dyn_spg_ctl 
    211203 
Note: See TracChangeset for help on using the changeset viewer.