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 13987 for NEMO/branches/2020/dev_r13312_AGRIF-03-04_jchanut_vinterp_tstep/src/TOP/trcini.F90 – NEMO

Ignore:
Timestamp:
2020-12-02T13:22:58+01:00 (3 years ago)
Author:
cetlod
Message:

Merging dev_r13333_TOP-05_Ethe_Agrif into dev_r13312_AGRIF-03-04_jchanut_vinterp_tstep

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13312_AGRIF-03-04_jchanut_vinterp_tstep/src/TOP/trcini.F90

    r13286 r13987  
    1616   !!   top_alloc :   allocate the TOP arrays 
    1717   !!---------------------------------------------------------------------- 
     18   USE par_trc         ! need jptra, number of passive tracers 
    1819   USE oce_trc         ! shared variables between ocean and passive tracers 
    1920   USE trc             ! passive tracers common variables 
     
    9596      CHARACTER (len=25) :: charout 
    9697      REAL(wp), DIMENSION(jpi,jpj,jpk,jptra) :: zzmsk 
    97       CHARACTER (len=25), DIMENSION(jptra) :: clseb   
    9898      !!---------------------------------------------------------------------- 
    9999      ! 
     
    131131         CALL prt_ctl_info( charout, cdcomp = 'top' ) 
    132132         CALL prt_ctl( tab4d_1=tr(:,:,:,:,Kmm), mask1=tmask, clinfo=ctrcnm ) 
    133          DO jn = 1, jptra 
    134             zzmsk(:,:,:,jn) = tmask(:,:,:) 
    135             WRITE(clseb(jn),'(a,i2.2)') 'seb ', jn 
    136          END DO 
    137          CALL prt_ctl( tab4d_1=zzmsk, mask1=tmask, clinfo=clseb ) 
    138133      ENDIF 
    1391349000  FORMAT('      tracer nb : ',i2,'      name :',a10,'      initial content :',e18.10) 
     
    254249        ! 
    255250      ELSE                             ! Initialisation of tracer from a file that may also be used for damping 
    256 !!gm BUG ?   if damping and restart, what's happening ? 
    257251        IF( ln_trcdta .AND. nb_trcdta > 0 ) THEN 
    258252            ! update passive tracers arrays with input data read from file 
     
    260254               IF( ln_trc_ini(jn) ) THEN 
    261255                  jl = n_trc_index(jn)  
    262                   CALL trc_dta( nit000, Kmm, sf_trcdta(jl), rf_trfac(jl), tr(:,:,:,jn,Kmm) ) 
    263                   ! 
    264                   ! deallocate data structure if data are not used for damping 
    265                   IF( .NOT.ln_trcdmp .AND. .NOT.ln_trcdmp_clo ) THEN 
    266                      IF(lwp) WRITE(numout,*) 'trc_ini_state: deallocate data arrays as they are only used to initialize the run' 
    267                                                   DEALLOCATE( sf_trcdta(jl)%fnow ) 
    268                      IF( sf_trcdta(jl)%ln_tint )  DEALLOCATE( sf_trcdta(jl)%fdta ) 
    269                      ! 
    270                   ENDIF 
     256                  CALL trc_dta( nit000, jl, tr(:,:,:,jn,Kmm) ) 
    271257               ENDIF 
    272258            END DO 
Note: See TracChangeset for help on using the changeset viewer.