- Timestamp:
- 2019-11-22T15:29:17+01:00 (4 years ago)
- 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 103 103 CONTAINS 104 104 105 SUBROUTINE dia_obs_init 105 SUBROUTINE dia_obs_init( Kmm ) 106 106 !!---------------------------------------------------------------------- 107 107 !! *** ROUTINE dia_obs_init *** … … 114 114 !! 115 115 !!---------------------------------------------------------------------- 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 117 118 INTEGER, DIMENSION(:), ALLOCATABLE :: ifilesprof, ifilessurf ! Number of profile & surface files 118 119 INTEGER :: ios ! Local integer output status for namelist read … … 429 430 & jpi, jpj, jpk, & 430 431 & zmask1, zglam1, zgphi1, zmask2, zglam2, zgphi2, & 431 & ln_nea, ln_bound_reject, &432 & ln_nea, ln_bound_reject, Kmm, & 432 433 & kdailyavtypes = nn_profdavtypes ) 433 434 END DO … … 459 460 ! 460 461 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 ) 462 463 IF( ln_altbias ) & 463 464 & CALL obs_rea_altbias ( surfdataqc(jtype), n2dintsurf(jtype), cn_altbiasfile ) … … 483 484 484 485 485 SUBROUTINE dia_obs( kstp )486 SUBROUTINE dia_obs( kstp, Kmm ) 486 487 !!---------------------------------------------------------------------- 487 488 !! *** ROUTINE dia_obs *** … … 496 497 !! ** Action : 497 498 !!---------------------------------------------------------------------- 498 USE dom_oce, ONLY : gdept _n, gdept_1d ! Ocean space and time domain variables499 USE dom_oce, ONLY : gdept, gdept_1d ! Ocean space domain variables (Kmm time-level only) 499 500 USE phycst , ONLY : rday ! Physical constants 500 USE oce , ONLY : ts n, un, vn, sshn ! Ocean dynamics and tracers variables501 USE oce , ONLY : ts, uu, vv, ssh ! Ocean dynamics and tracers variables (Kmm time-level only) 501 502 USE phycst , ONLY : rday ! Physical constants 502 503 #if defined key_si3 … … 511 512 !! * Arguments 512 513 INTEGER, INTENT(IN) :: kstp ! Current timestep 514 INTEGER, INTENT(in) :: Kmm ! ocean time level indices 513 515 !! * Local declarations 514 516 INTEGER :: idaystp ! Number of timesteps per day … … 551 553 SELECT CASE ( TRIM(cobstypesprof(jtype)) ) 552 554 CASE('prof') 553 zprofvar1(:,:,:) = ts n(:,:,:,jp_tem)554 zprofvar2(:,:,:) = ts n(:,:,:,jp_sal)555 zprofvar1(:,:,:) = ts(:,:,:,jp_tem,Kmm) 556 zprofvar2(:,:,:) = ts(:,:,:,jp_sal,Kmm) 555 557 zprofmask1(:,:,:) = tmask(:,:,:) 556 558 zprofmask2(:,:,:) = tmask(:,:,:) … … 560 562 zgphi2(:,:) = gphit(:,:) 561 563 CASE('vel') 562 zprofvar1(:,:,:) = u n(:,:,:)563 zprofvar2(:,:,:) = v n(:,:,:)564 zprofvar1(:,:,:) = uu(:,:,:,Kmm) 565 zprofvar2(:,:,:) = vv(:,:,:,Kmm) 564 566 zprofmask1(:,:,:) = umask(:,:,:) 565 567 zprofmask2(:,:,:) = vmask(:,:,:) … … 575 577 & nit000, idaystp, & 576 578 & zprofvar1, zprofvar2, & 577 & gdept _n(:,:,:), gdepw_n(:,:,:),&579 & gdept(:,:,:,Kmm), gdepw(:,:,:,Kmm), & 578 580 & zprofmask1, zprofmask2, & 579 581 & zglam1, zglam2, zgphi1, zgphi2, & … … 594 596 SELECT CASE ( TRIM(cobstypessurf(jtype)) ) 595 597 CASE('sst') 596 zsurfvar(:,:) = ts n(:,:,1,jp_tem)598 zsurfvar(:,:) = ts(:,:,1,jp_tem,Kmm) 597 599 CASE('sla') 598 zsurfvar(:,:) = ssh n(:,:)600 zsurfvar(:,:) = ssh(:,:,Kmm) 599 601 CASE('sss') 600 zsurfvar(:,:) = ts n(:,:,1,jp_sal)602 zsurfvar(:,:) = ts(:,:,1,jp_sal,Kmm) 601 603 CASE('sic') 602 604 IF ( kstp == 0 ) THEN
Note: See TracChangeset
for help on using the changeset viewer.