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 5034 for branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OFF_SRC – NEMO

Ignore:
Timestamp:
2015-01-15T14:48:42+01:00 (9 years ago)
Author:
andrewryan
Message:

merge with trunk

Location:
branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OFF_SRC
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OFF_SRC/domain.F90

    r4624 r5034  
    335335      INTEGER ::   ios 
    336336      !! 
    337       NAMELIST/namzgr/ ln_zco, ln_zps, ln_sco 
     337      NAMELIST/namzgr/ ln_zco, ln_zps, ln_sco, ln_isfcav 
    338338      !!---------------------------------------------------------------------- 
    339339 
     
    352352         WRITE(numout,*) '~~~~~~~' 
    353353         WRITE(numout,*) '          Namelist namzgr : set vertical coordinate' 
    354          WRITE(numout,*) '             z-coordinate - full steps      ln_zco = ', ln_zco 
    355          WRITE(numout,*) '             z-coordinate - partial steps   ln_zps = ', ln_zps 
    356          WRITE(numout,*) '             s- or hybrid z-s-coordinate    ln_sco = ', ln_sco 
     354         WRITE(numout,*) '             z-coordinate - full steps      ln_zco    = ', ln_zco 
     355         WRITE(numout,*) '             z-coordinate - partial steps   ln_zps    = ', ln_zps 
     356         WRITE(numout,*) '             s- or hybrid z-s-coordinate    ln_sco    = ', ln_sco 
     357         WRITE(numout,*) '             ice shelf cavity               ln_isfcav = ', ln_isfcav 
    357358      ENDIF 
    358359 
     
    361362      IF( ln_zps ) ioptio = ioptio + 1 
    362363      IF( ln_sco ) ioptio = ioptio + 1 
    363       IF ( ioptio /= 1 )   CALL ctl_stop( ' none or several vertical coordinate options used' ) 
     364      IF( ln_isfcav ) ioptio = 33 
     365      IF ( ioptio /= 1  )   CALL ctl_stop( ' none or several vertical coordinate options used' ) 
     366      IF ( ioptio == 33 )   CALL ctl_stop( ' isf cavity with off line module not yet done    ' ) 
    364367 
    365368   END SUBROUTINE dom_zgr 
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OFF_SRC/dommsk.F90

    r3294 r5034  
    5858      ! Interior domain mask (used for global sum) 
    5959      ! -------------------- 
     60      ssmask(:,:)  = tmask(:,:,1) 
    6061      tmask_i(:,:) = tmask(:,:,1) 
    6162      iif = jpreci                        ! thickness of exchange halos in i-axis 
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OFF_SRC/domrea.F90

    r4569 r5034  
    164164 
    165165         CALL iom_get( inum4, jpdom_data, 'mbathy', zmbk )              ! number of ocean t-points 
    166          mbathy(:,:) = INT( zmbk(:,:) ) 
     166         mbathy (:,:) = INT( zmbk(:,:) ) 
     167         misfdep(:,:) = 1                                               ! ice shelf case not yet done 
    167168          
    168169         CALL zgr_bot_level                                             ! mbk. arrays (deepest ocean t-, u- & v-points 
     
    371372      ! 
    372373      mbkt(:,:) = MAX( mbathy(:,:) , 1 )    ! bottom k-index of T-level (=1 over land) 
     374      mikt(:,:) = 1 ; miku(:,:) = 1; mikv(:,:) = 1; ! top k-index of T-level (=1 over open ocean; >1 beneath ice shelf) 
    373375      !                                     ! bottom k-index of W-level = mbkt+1 
    374376      DO jj = 1, jpjm1                      ! bottom k-index of u- (v-) level 
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OFF_SRC/dtadyn.F90

    r4624 r5034  
    535535      !!--------------------------------------------------------------------- 
    536536#if defined key_ldfslp && ! defined key_c1d 
    537       CALL eos( pts, rhd, rhop, gdept_0(:,:,:) )   ! Time-filtered in situ density  
    538       CALL bn2( pts, rn2 )         ! before Brunt-Vaisala frequency 
    539       IF( ln_zps )   & 
    540          &  CALL zps_hde( kt, jpts, pts, gtsu, gtsv, rhd, gru, grv )  ! Partial steps: before Horizontal DErivative 
     537      CALL eos_rab( pts, rab_n )       ! now local thermal/haline expension ratio at T-points 
     538      CALL bn2    ( pts, rab_n, rn2  ) ! now    Brunt-Vaisala 
     539      IF( ln_zps )   & ! Partial steps: before Horizontal DErivative 
     540        &    CALL zps_hde( kt, jpts, pts, gtsu, gtsv,  &        ! Partial steps: before horizontal gradient 
     541        &                                        rhd, gru , grv , aru , arv , gzu , gzv , ge3ru , ge3rv ,   &             ! 
     542        &                                 gtui, gtvi, grui, grvi, arui, arvi, gzui, gzvi, ge3rui, ge3rvi    )  ! of t, s, rd at the last ocean level 
     543        ! only gtsu, gtsv, rhd, gru , grv are used  
     544 
     545 
    541546         !                                                            ! of t, s, rd at the bottom ocean level 
    542547      CALL zdf_mxl( kt )            ! mixed layer depth 
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OFF_SRC/istate.F90

    r4569 r5034  
    1212   USE oce             ! ocean dynamics and active tracers  
    1313   USE dom_oce         ! ocean space and time domain  
    14    USE daymod          ! calendar 
    1514 
    1615   IMPLICIT NONE 
     
    4746      rn2  (:,:,:) = 0.e0  
    4847      ! 
    49       CALL day_init                           ! model calendar (using both namelist and restart infos) 
    50  
    5148   END SUBROUTINE istate_init 
    5249 
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OFF_SRC/nemogcm.F90

    r4640 r5034  
    5151   USE trcnam 
    5252   USE trcrst 
     53   USE diaptr         ! Need to initialise this as some variables are used in if statements later 
    5354 
    5455   IMPLICIT NONE 
     
    298299      !                                     ! Passive tracers 
    299300                            CALL     trc_init   ! Passive tracers initialization 
    300  
     301      ! 
     302      ! Initialise diaptr as some variables are used in if statements later (in 
     303      ! various advection and diffusion routines. 
     304                            CALL dia_ptr_init 
     305      ! 
    301306      IF(lwp) WRITE(numout,cform_aaa)       ! Flag AAAAAAA 
    302307      ! 
Note: See TracChangeset for help on using the changeset viewer.