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 15574 for NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/OBS/diaobs.F90 – NEMO

Ignore:
Timestamp:
2021-12-03T20:32:50+01:00 (3 years ago)
Author:
techene
Message:

#2605 #2715 trunk merged into dev_r14318_RK3_stage1

Location:
NEMO/branches/2021/dev_r14318_RK3_stage1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14318_RK3_stage1

    • Property svn:externals
      •  

        old new  
        99 
        1010# SETTE 
        11 ^/utils/CI/sette@14244        sette 
         11^/utils/CI/sette@HEAD        sette 
         12 
  • NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/OBS/diaobs.F90

    r14056 r15574  
    9797   TYPE(obs_prof), PUBLIC, POINTER, DIMENSION(:) ::   profdataqc   !: Profile data after quality control 
    9898 
    99    CHARACTER(len=8), PUBLIC, DIMENSION(:), ALLOCATABLE ::   cobstypesprof, cobstypessurf   !: Profile & surface obs types 
    100  
     99   CHARACTER(len=lca), PUBLIC, DIMENSION(:), ALLOCATABLE ::   cobstypesprof, cobstypessurf   !: Profile & surface obs types 
     100 
     101#  include "domzgr_substitute.h90" 
    101102   !!---------------------------------------------------------------------- 
    102103   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
     
    603604      !! ** Action  : 
    604605      !!---------------------------------------------------------------------- 
    605       USE dom_oce, ONLY : gdept, gdept_1d     ! Ocean space domain variables (Kmm time-level only) 
    606606      USE phycst , ONLY : rday                ! Physical constants 
    607607      USE oce    , ONLY : ts, uu, vv, ssh     ! Ocean dynamics and tracers variables (Kmm time-level only) 
     
    623623      INTEGER :: jtype             ! Data loop variable 
    624624      INTEGER :: jvar              ! Variable number 
    625       INTEGER :: ji, jj            ! Loop counters 
     625      INTEGER :: ji, jj, jk        ! Loop counters 
    626626      REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE :: & 
    627627         & zprofvar                ! Model values for variables in a prof ob 
     
    634634         & zglam,    &             ! Model longitudes for prof variables 
    635635         & zgphi                   ! Model latitudes for prof variables 
     636      REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: zdept, zdepw 
    636637 
    637638      !----------------------------------------------------------------------- 
     
    650651 
    651652      IF ( nproftypes > 0 ) THEN 
     653 
     654         ALLOCATE( zdept(jpi,jpj,jpk), zdepw(jpi,jpj,jpk) ) 
     655         DO jk = 1, jpk 
     656            zdept(:,:,jk) = gdept(:,:,jk,Kmm) 
     657            zdepw(:,:,jk) = gdepw(:,:,jk,Kmm) 
     658         END DO 
    652659 
    653660         DO jtype = 1, nproftypes 
     
    687694                  &               nit000, idaystp, jvar,                   & 
    688695                  &               zprofvar(:,:,:,jvar),                    & 
    689                   &               gdept(:,:,:,Kmm), gdepw(:,:,:,Kmm),      &  
     696                  &               zdept(:,:,:), zdepw(:,:,:),      & 
    690697                  &               zprofmask(:,:,:,jvar),                   & 
    691698                  &               zglam(:,:,jvar), zgphi(:,:,jvar),        & 
     
    697704 
    698705         END DO 
     706 
     707         DEALLOCATE( zdept, zdepw ) 
    699708 
    700709      ENDIF 
     
    10171026      INTEGER, DIMENSION(ntypes), INTENT(OUT) :: & 
    10181027         &                   ifiles      ! Out number of files for each type 
    1019       CHARACTER(len=8), DIMENSION(ntypes), INTENT(IN) :: & 
     1028      CHARACTER(len=lca), DIMENSION(ntypes), INTENT(IN) :: & 
    10201029         &                   cobstypes   ! List of obs types 
    10211030      CHARACTER(len=128), DIMENSION(ntypes, jpmaxnfiles), INTENT(IN) :: & 
Note: See TracChangeset for help on using the changeset viewer.