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 14982 for NEMO/trunk/src/OCE/OBS/diaobs.F90 – NEMO

Ignore:
Timestamp:
2021-06-11T16:52:03+02:00 (3 years ago)
Author:
hadcv
Message:

#2665: Various fixes for code enabled with key_qco/key_linssh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/OBS/diaobs.F90

    r14834 r14982  
    9999   CHARACTER(len=8), PUBLIC, DIMENSION(:), ALLOCATABLE ::   cobstypesprof, cobstypessurf   !: Profile & surface obs types 
    100100 
     101#  include "domzgr_substitute.h90" 
    101102   !!---------------------------------------------------------------------- 
    102103   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
     
    623624      INTEGER :: jtype             ! Data loop variable 
    624625      INTEGER :: jvar              ! Variable number 
    625       INTEGER :: ji, jj            ! Loop counters 
     626      INTEGER :: ji, jj, jk        ! Loop counters 
    626627      REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE :: & 
    627628         & zprofvar                ! Model values for variables in a prof ob 
     
    634635         & zglam,    &             ! Model longitudes for prof variables 
    635636         & zgphi                   ! Model latitudes for prof variables 
     637      REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: zdept, zdepw 
    636638 
    637639      !----------------------------------------------------------------------- 
     
    650652 
    651653      IF ( nproftypes > 0 ) THEN 
     654 
     655         ALLOCATE( zdept(jpi,jpj,jpk), zdepw(jpi,jpj,jpk) ) 
     656         DO jk = 1, jpk 
     657            zdept(:,:,jk) = gdept(:,:,jk,Kmm) 
     658            zdepw(:,:,jk) = gdepw(:,:,jk,Kmm) 
     659         END DO 
    652660 
    653661         DO jtype = 1, nproftypes 
     
    687695                  &               nit000, idaystp, jvar,                   & 
    688696                  &               zprofvar(:,:,:,jvar),                    & 
    689                   &               gdept(:,:,:,Kmm), gdepw(:,:,:,Kmm),      & 
     697                  &               zdept(:,:,:), zdepw(:,:,:),      & 
    690698                  &               zprofmask(:,:,:,jvar),                   & 
    691699                  &               zglam(:,:,jvar), zgphi(:,:,jvar),        & 
     
    697705 
    698706         END DO 
     707 
     708         DEALLOCATE( zdept, zdepw ) 
    699709 
    700710      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.