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 5581 for branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/DIA/diafwb.F90 – NEMO

Ignore:
Timestamp:
2015-07-10T13:28:53+02:00 (9 years ago)
Author:
timgraham
Message:

Merged head of trunk into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/DIA/diafwb.F90

    r4147 r5581  
    77   !!            8.5  !  02-06  (G. Madec)  F90: Free form and module 
    88   !!            9.0  !  05-11  (V. Garnier) Surface pressure gradient organization 
    9    !!---------------------------------------------------------------------- 
    10 #if ! defined key_coupled 
    11   
     9   !!----------------------------------------------------------------------  
    1210   !!---------------------------------------------------------------------- 
    1311   !!   Only for ORCA2 ORCA1 and ORCA025 
     
    3028   PUBLIC dia_fwb    ! routine called by step.F90 
    3129 
    32    LOGICAL, PUBLIC, PARAMETER ::   lk_diafwb = .TRUE.    !: fresh water budget flag 
    33  
    3430   REAL(wp)               ::   a_fwf ,          & 
    3531      &                        a_sshb, a_sshn, a_salb, a_saln 
     
    5551      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index 
    5652      !! 
    57       INTEGER :: inum             ! temporary logical unit 
    58       INTEGER :: ji, jj, jk, jt   ! dummy loop indices 
    59       INTEGER :: ii0, ii1, ij0, ij1 
    60       REAL(wp) ::   zarea, zvol, zwei 
    61       REAL(wp) ::  ztemi(4), ztemo(4), zsali(4), zsalo(4), zflxi(4), zflxo(4) 
    62       REAL(wp) ::  zt, zs, zu   
    63       REAL(wp) ::  zsm0, zfwfnew 
     53      INTEGER  :: inum             ! temporary logical unit 
     54      INTEGER  :: ji, jj, jk, jt   ! dummy loop indices 
     55      INTEGER  :: ii0, ii1, ij0, ij1 
     56      INTEGER  :: isrow         ! index for ORCA1 starting row 
     57      REAL(wp) :: zarea, zvol, zwei 
     58      REAL(wp) :: ztemi(4), ztemo(4), zsali(4), zsalo(4), zflxi(4), zflxo(4) 
     59      REAL(wp) :: zt, zs, zu   
     60      REAL(wp) :: zsm0, zfwfnew 
    6461      IF( cp_cfg == "orca" .AND. jp_cfg == 1 .OR. jp_cfg == 2 .OR. jp_cfg == 4 ) THEN 
    6562      !!---------------------------------------------------------------------- 
     
    169166         CASE ( 1 )                                  !  ORCA_R1 configurations 
    170167            !                                        ! ======================= 
    171             ii0 = 283   ;   ii1 = 283 
    172             ij0 = 200   ;   ij1 = 200 
     168            ! This dirty section will be suppressed by simplification process: 
     169            ! all this will come back in input files 
     170            ! Currently these hard-wired indices relate to configuration with 
     171            ! extend grid (jpjglo=332) 
     172            isrow = 332 - jpjglo 
     173            ! 
     174            ii0 = 283           ;   ii1 = 283 
     175            ij0 = 241 - isrow   ;   ij1 = 241 - isrow 
    173176            !                                        ! ======================= 
    174177         CASE DEFAULT                                !    ORCA R05 or R025 
     
    216219         CASE ( 1 )                                  !  ORCA_R1 configurations 
    217220            !                                        ! ======================= 
    218             ii0 = 282   ;   ii1 = 282 
    219             ij0 = 200   ;   ij1 = 200 
     221            ! This dirty section will be suppressed by simplification process: 
     222            ! all this will come back in input files 
     223            ! Currently these hard-wired indices relate to configuration with 
     224            ! extend grid (jpjglo=332) 
     225            isrow = 332 - jpjglo 
     226            ii0 = 282           ;   ii1 = 282 
     227            ij0 = 240 - isrow   ;   ij1 = 240 - isrow 
    220228            !                                        ! ======================= 
    221229         CASE DEFAULT                                !    ORCA R05 or R025 
     
    263271         CASE ( 1 )                                  !  ORCA_R1 configurations 
    264272            !                                        ! ======================= 
    265             ii0 = 331   ;   ii1 = 331 
    266             ij0 = 176   ;   ij1 = 176 
     273            ! This dirty section will be suppressed by simplification process: 
     274            ! all this will come back in input files 
     275            ! Currently these hard-wired indices relate to configuration with 
     276            ! extend grid (jpjglo=332) 
     277            isrow = 332 - jpjglo 
     278            ii0 = 331           ;   ii1 = 331 
     279            ij0 = 215 - isrow   ;   ij1 = 215 - isrow 
    267280            !                                        ! ======================= 
    268281         CASE DEFAULT                                !    ORCA R05 or R025 
     
    310323         CASE ( 1 )                                  !  ORCA_R1 configurations 
    311324            !                                        ! ======================= 
    312             ii0 = 297   ;   ii1 = 297  
    313             ij0 = 230   ;   ij1 = 230 
     325            ! This dirty section will be suppressed by simplification process: 
     326            ! all this will come back in input files 
     327            ! Currently these hard-wired indices relate to configuration with 
     328            ! extend grid (jpjglo=332) 
     329            isrow = 332 - jpjglo 
     330            ii0 = 297           ;   ii1 = 297 
     331            ij0 = 269 - isrow   ;   ij1 = 269 - isrow 
    314332            !                                        ! ======================= 
    315333         CASE DEFAULT                                !    ORCA R05 or R025 
     
    453471   END SUBROUTINE dia_fwb 
    454472 
    455 #else 
    456    !!---------------------------------------------------------------------- 
    457    !!   Default option :                                       Dummy Module 
    458    !!---------------------------------------------------------------------- 
    459    LOGICAL, PUBLIC, PARAMETER ::   lk_diafwb = .FALSE.    !: fresh water budget flag 
    460 CONTAINS 
    461    SUBROUTINE dia_fwb( kt )        ! Empty routine 
    462       WRITE(*,*) 'dia_fwb: : You should not have seen this print! error?', kt 
    463    END SUBROUTINE dia_fwb 
    464 #endif 
    465  
    466473   !!====================================================================== 
    467474END MODULE diafwb 
Note: See TracChangeset for help on using the changeset viewer.