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 11949 for NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/OBS/diaobs.F90 – NEMO

Ignore:
Timestamp:
2019-11-22T15:29:17+01:00 (4 years ago)
Author:
acc
Message:

Merge in changes from 2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps. This just creates a fresh copy of this branch to use as the merge base. See ticket #2341

Location:
NEMO/branches/2019/dev_r11943_MERGE_2019/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11943_MERGE_2019/src

    • Property svn:mergeinfo deleted
  • NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/OBS/diaobs.F90

    r11536 r11949  
    103103CONTAINS 
    104104 
    105    SUBROUTINE dia_obs_init 
     105   SUBROUTINE dia_obs_init( Kmm ) 
    106106      !!---------------------------------------------------------------------- 
    107107      !!                    ***  ROUTINE dia_obs_init  *** 
     
    114114      !! 
    115115      !!---------------------------------------------------------------------- 
    116       INTEGER, PARAMETER ::   jpmaxnfiles = 1000    ! Maximum number of files for each obs type 
     116      INTEGER, INTENT(in)                ::   Kmm                      ! ocean time level indices 
     117      INTEGER, PARAMETER                 ::   jpmaxnfiles = 1000       ! Maximum number of files for each obs type 
    117118      INTEGER, DIMENSION(:), ALLOCATABLE ::   ifilesprof, ifilessurf   ! Number of profile & surface files 
    118119      INTEGER :: ios             ! Local integer output status for namelist read 
     
    429430               &               jpi, jpj, jpk, & 
    430431               &               zmask1, zglam1, zgphi1, zmask2, zglam2, zgphi2,  & 
    431                &               ln_nea, ln_bound_reject, & 
     432               &               ln_nea, ln_bound_reject, Kmm, & 
    432433               &               kdailyavtypes = nn_profdavtypes ) 
    433434         END DO 
     
    459460            ! 
    460461            IF( TRIM(cobstypessurf(jtype)) == 'sla' ) THEN 
    461                CALL obs_rea_mdt( surfdataqc(jtype), n2dintsurf(jtype) ) 
     462               CALL obs_rea_mdt( surfdataqc(jtype), n2dintsurf(jtype), Kmm ) 
    462463               IF( ln_altbias )   & 
    463464                  & CALL obs_rea_altbias ( surfdataqc(jtype), n2dintsurf(jtype), cn_altbiasfile ) 
     
    483484 
    484485 
    485    SUBROUTINE dia_obs( kstp ) 
     486   SUBROUTINE dia_obs( kstp, Kmm ) 
    486487      !!---------------------------------------------------------------------- 
    487488      !!                    ***  ROUTINE dia_obs  *** 
     
    496497      !! ** Action  : 
    497498      !!---------------------------------------------------------------------- 
    498       USE dom_oce, ONLY : gdept_n, gdept_1d   ! Ocean space and time domain variables 
     499      USE dom_oce, ONLY : gdept, gdept_1d     ! Ocean space domain variables (Kmm time-level only) 
    499500      USE phycst , ONLY : rday                ! Physical constants 
    500       USE oce    , ONLY : tsn, un, vn, sshn   ! Ocean dynamics and tracers variables 
     501      USE oce    , ONLY : ts, uu, vv, ssh     ! Ocean dynamics and tracers variables (Kmm time-level only) 
    501502      USE phycst , ONLY : rday                ! Physical constants 
    502503#if defined  key_si3 
     
    511512      !! * Arguments 
    512513      INTEGER, INTENT(IN) :: kstp  ! Current timestep 
     514      INTEGER, INTENT(in) :: Kmm   ! ocean time level indices 
    513515      !! * Local declarations 
    514516      INTEGER :: idaystp           ! Number of timesteps per day 
     
    551553            SELECT CASE ( TRIM(cobstypesprof(jtype)) ) 
    552554            CASE('prof') 
    553                zprofvar1(:,:,:) = tsn(:,:,:,jp_tem) 
    554                zprofvar2(:,:,:) = tsn(:,:,:,jp_sal) 
     555               zprofvar1(:,:,:) = ts(:,:,:,jp_tem,Kmm) 
     556               zprofvar2(:,:,:) = ts(:,:,:,jp_sal,Kmm) 
    555557               zprofmask1(:,:,:) = tmask(:,:,:) 
    556558               zprofmask2(:,:,:) = tmask(:,:,:) 
     
    560562               zgphi2(:,:) = gphit(:,:) 
    561563            CASE('vel') 
    562                zprofvar1(:,:,:) = un(:,:,:) 
    563                zprofvar2(:,:,:) = vn(:,:,:) 
     564               zprofvar1(:,:,:) = uu(:,:,:,Kmm) 
     565               zprofvar2(:,:,:) = vv(:,:,:,Kmm) 
    564566               zprofmask1(:,:,:) = umask(:,:,:) 
    565567               zprofmask2(:,:,:) = vmask(:,:,:) 
     
    575577               &               nit000, idaystp,                         & 
    576578               &               zprofvar1, zprofvar2,                    & 
    577                &               gdept_n(:,:,:), gdepw_n(:,:,:),            &  
     579               &               gdept(:,:,:,Kmm), gdepw(:,:,:,Kmm),      &  
    578580               &               zprofmask1, zprofmask2,                  & 
    579581               &               zglam1, zglam2, zgphi1, zgphi2,          & 
     
    594596            SELECT CASE ( TRIM(cobstypessurf(jtype)) ) 
    595597            CASE('sst') 
    596                zsurfvar(:,:) = tsn(:,:,1,jp_tem) 
     598               zsurfvar(:,:) = ts(:,:,1,jp_tem,Kmm) 
    597599            CASE('sla') 
    598                zsurfvar(:,:) = sshn(:,:) 
     600               zsurfvar(:,:) = ssh(:,:,Kmm) 
    599601            CASE('sss') 
    600                zsurfvar(:,:) = tsn(:,:,1,jp_sal) 
     602               zsurfvar(:,:) = ts(:,:,1,jp_sal,Kmm) 
    601603            CASE('sic') 
    602604               IF ( kstp == 0 ) THEN 
Note: See TracChangeset for help on using the changeset viewer.