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 5963 for branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/OBS/diaobs.F90 – NEMO

Ignore:
Timestamp:
2015-12-01T16:06:40+01:00 (8 years ago)
Author:
timgraham
Message:

Merged branches/2014/dev_r4650_UKMO14.4_OBS_GENERAL_VINTERP into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/OBS/diaobs.F90

    r4990 r5963  
    118118   !!---------------------------------------------------------------------- 
    119119 
     120   !! * Substitutions  
     121#  include "domzgr_substitute.h90" 
    120122CONTAINS 
    121123 
     
    207209      ! Read namelist parameters 
    208210      !----------------------------------------------------------------------- 
    209  
     211       
     212      !Initalise all values in namelist arrays 
    210213      enactfiles(:) = '' 
    211214      coriofiles(:) = '' 
     
    232235      ln_velfb_av(:) = .FALSE. 
    233236      ln_ignmis = .FALSE. 
    234        
     237 
    235238      CALL ini_date( dobsini ) 
    236239      CALL fin_date( dobsend ) 
     
    991994      !!        !  07-04  (G. Smith) Generalized surface operators 
    992995      !!        !  08-10  (M. Valdivieso) obs operator for velocity profiles 
     996      !!        !  14-08  (J. While) observation operator for profiles in  
     997      !!                             generalised vertical coordinates 
    993998      !!---------------------------------------------------------------------- 
    994999      !! * Modules used 
     
    9961001         & rdt,           &                        
    9971002         & gdept_1d,       &              
     1003#if defined key_vvl  
     1004         & gdept_n,       & 
     1005#else  
     1006         & gdept_1d,      & 
     1007#endif                                         
    9981008         & tmask, umask, vmask                             
    9991009      USE phycst, ONLY : &              ! Physical constants 
     
    10531063      IF ( ln_t3d .OR. ln_s3d ) THEN 
    10541064         DO jprofset = 1, nprofsets 
    1055             IF ( ld_enact(jprofset) ) THEN 
    1056                CALL obs_pro_opt( prodatqc(jprofset),                     & 
    1057                   &              kstp, jpi, jpj, jpk, nit000, idaystp,   & 
    1058                   &              tsn(:,:,:,jp_tem), tsn(:,:,:,jp_sal),   & 
    1059                   &              gdept_1d, tmask, n1dint, n2dint,        & 
    1060                   &              kdailyavtypes = endailyavtypes ) 
     1065            IF( ln_zco .OR. ln_zps ) THEN  
     1066               IF ( ld_enact(jprofset) ) THEN  
     1067                  CALL obs_pro_opt( prodatqc(jprofset),                     &  
     1068                     &              kstp, jpi, jpj, jpk, nit000, idaystp,   &  
     1069                     &              tsn(:,:,:,jp_tem), tsn(:,:,:,jp_sal),   &  
     1070                     &              gdept_1d, tmask, n1dint, n2dint,        &  
     1071                     &              kdailyavtypes = endailyavtypes )  
     1072               ELSE  
     1073                  CALL obs_pro_opt( prodatqc(jprofset),                     &  
     1074                     &              kstp, jpi, jpj, jpk, nit000, idaystp,   &  
     1075                     &              tsn(:,:,:,jp_tem), tsn(:,:,:,jp_sal),   &  
     1076                     &              gdept_1d, tmask, n1dint, n2dint               )  
     1077               ENDIF  
    10611078            ELSE 
    1062                CALL obs_pro_opt( prodatqc(jprofset),                     & 
    1063                   &              kstp, jpi, jpj, jpk, nit000, idaystp,   & 
    1064                   &              tsn(:,:,:,jp_tem), tsn(:,:,:,jp_sal),   & 
    1065                   &              gdept_1d, tmask, n1dint, n2dint              ) 
     1079               IF ( ld_enact(jprofset) ) THEN  
     1080                  CALL obs_pro_sco_opt( prodatqc(jprofset),                 &  
     1081                     &              kstp, jpi, jpj, jpk, nit000, idaystp,   &  
     1082                     &              tsn(:,:,:,jp_tem), tsn(:,:,:,jp_sal),   &  
     1083                     &              fsdept(:,:,:), tmask, n1dint, n2dint,   &  
     1084                     &              kdailyavtypes = endailyavtypes )  
     1085               ELSE  
     1086                  CALL obs_pro_sco_opt( prodatqc(jprofset),                 &  
     1087                     &              kstp, jpi, jpj, jpk, nit000, idaystp,   &  
     1088                     &              tsn(:,:,:,jp_tem), tsn(:,:,:,jp_sal),   &  
     1089                     &              fsdept(:,:,:), tmask, n1dint, n2dint )  
     1090               ENDIF  
    10661091            ENDIF 
    10671092         END DO 
Note: See TracChangeset for help on using the changeset viewer.