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 433 for trunk/NEMO/TOP_SRC/trcdta.F90 – NEMO

Ignore:
Timestamp:
2006-04-10T17:40:29+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_044 : CT : update the passive tracers TOP component and the standard GYRE configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/trcdta.F90

    r376 r433  
    11MODULE trcdta 
    22   !!====================================================================== 
    3    !!                     ***  MODULE  dtatem  *** 
    4    !! Ocean data  :  read passive tracer data from monthly atlas data 
     3   !!                     ***  MODULE  trcdta  *** 
     4   !! Ocean data  :  reads passive tracer data  
    55   !!===================================================================== 
    66   !!  TOP 1.0,  LOCEAN-IPSL (2005)  
     
    2929   !! * Shared module variables 
    3030   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk,jptra) ::   &  !: 
    31       trdta             !: temperature data at given time-step 
     31      trdta             !: tracer data at given time-step 
    3232 
    3333   !! * Module variables 
    3434   REAL(wp), DIMENSION(jpi,jpj,jpk,jptra,2) ::   & 
    35       tracdta            ! temperature data at two consecutive times 
     35      tracdta            ! tracer data at two consecutive times 
    3636   INTEGER , DIMENSION(jptra) :: & 
    3737      nlectr  ,   &    !!: switch for reading once 
    38       ntrc1   ,   &    !!: ???? 
    39       ntrc2            !!: ???? 
     38      ntrc1   ,   &    !!: number of first month when reading 12 monthly value 
     39      ntrc2            !!: number of second month when reading 12 monthly value 
    4040 
    4141   !! * Substitutions 
     
    9999               !! 3D tracer data 
    100100               IF(lwp)WRITE(numout,*) 
    101                IF(lwp)WRITE(numout,*) ' trcdta: reading tracer'  
    102                IF(lwp)WRITE(numout,*) ' data file ', jn 
     101               IF(lwp)WRITE(numout,*) ' dta_trc: reading tracer'  
     102               IF(lwp)WRITE(numout,*) ' data file ', jn, ctrcnm(jn) 
    103103               IF(lwp)WRITE(numout,*) 
    104104               nlectr(jn) = 0 
     
    112112            ipi = jpiglo 
    113113            ipj = jpjglo 
     114            ipk = jpk 
    114115 
    115116            ! First call kt=nit000 
     
    120121               IF(lwp) THEN 
    121122                  WRITE(numout,*) 
    122                   WRITE(numout,*) ' Tracer monthly fields'  
     123                  WRITE(numout,*) ' Tracer data fields'  
    123124                  WRITE(numout,*) ' ~~~~~~~~~~~~~~~~~~~~~' 
    124125                  WRITE(numout,*) ' NetCDF FORMAT' 
     
    127128 
    128129               ! open file  
    129  
     130#if defined key_trc_pisces 
    130131               clname(jn) = 'LEVITUS_'//ctrcnm(jn) 
     132#else 
     133               itime=1 
     134               clname(jn) = ctrcnm(jn) 
     135#endif 
    131136               CALL flinopen(TRIM(clname(jn)),mig(1),nlci,mjg(1),nlcj,    & 
    132137                  .FALSE.,ipi,ipj,ipk,zlon,zlat,zlev,itime,    & 
    133138                  istep,zdate0,rdt,numtr(jn)               ) 
    134139 
     140#if defined key_trc_pisces 
    135141               ! title, dimensions and tests 
    136142               IF( itime /= jpmois ) THEN 
     
    140146                     WRITE(numout,*) ' itime ',itime,' jpmois ',jpmois 
    141147                  ENDIF 
    142                   STOP 'trc_dta' 
    143                ENDIF 
     148                  STOP 'dta_trc' 
     149               ENDIF 
     150#endif 
    144151 
    145152               IF( ipi /= jpidta .OR. ipj /= jpjdta .OR. ipk /= jpk ) THEN 
     
    151158                     WRITE(numout,*) ' ipk ',ipk,' jpk ',jpk 
    152159                  ENDIF 
    153                   STOP 'trc_dta' 
    154                ENDIF 
    155                IF(lwp)WRITE(numout,*) itime,istep,zdate0,rdt,numtr(jn) 
     160                  STOP 'dta_trc' 
     161               ENDIF 
     162               IF(lwp)WRITE(numout,*) itime,istep(1),zdate0,rdt,numtr(jn) 
    156163               trdta(:,:,:,jn) = 0. 
    157164 
    158165            ENDIF 
    159166 
    160  
     167#if defined key_trc_pisces 
    161168            ! Read montly file 
    162169            IF( ( kt == nit000 .AND. nlectr(jn) == 0)   &  
     
    244251            IF( jn == jpsil) trdta(:,:,:,jn) = trdta(:,:,:,jn) * 1.E-6 
    245252            IF( jn == jppo4) trdta(:,:,:,jn) = trdta(:,:,:,jn) * 122.E-6 
    246  
    247  
    248          ENDIF 
    249  
    250       END DO 
     253#else 
     254            ! Read init file only 
     255            IF( kt == nit000  ) THEN 
     256               CALL flinget( numtr(jn),ctrcnm(jn),jpidta,jpjdta,jpk,    & 
     257               1,1,1,mig(1),nlci,mjg(1),nlcj,  & 
     258               trdta(1:nlci,1:nlcj,1:jpk,jn) ) 
     259               trdta(:,:,:,jn)=trdta(:,:,:,jn)*tmask(:,:,:) 
     260            ENDIF  
     261#endif 
     262 
     263        ENDIF 
     264 
     265       END DO 
    251266 
    252267   END SUBROUTINE dta_trc 
Note: See TracChangeset for help on using the changeset viewer.