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/trclec.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/trclec.F90

    r340 r433  
    150150      READ(numnat,natrtd) 
    151151 
     152      nkeep=0 
     153      ikeep(:)=0 
     154      DO ji=1,jptra 
     155         IF (luttrd(ji)) THEN  
     156             nkeep=nkeep+1 
     157             ikeep(ji)=nkeep 
     158         END IF  
     159      END DO 
     160      IF (nkeep.GT.0) THEN   
     161        IF (.NOT. ALLOCATED(trtrd)) ALLOCATE(trtrd(jpi,jpj,jpk,nkeep,jpdiatrc))  
     162        trtrd(:,:,:,:,:)=0.0 
     163      ENDIF  
    152164      IF(lwp) THEN 
    153165         WRITE(numout,*) 'natrtd' 
     
    159171            WRITE(numout,*)                      & 
    160172               ' keep dynamical trends for tracer number :',ji          & 
    161                ,luttrd(ji)    
    162          END DO 
     173               ,luttrd(ji), ikeep(ji) 
     174         END DO 
     175         WRITE(numout,*) 'total = ',nkeep,' tracers dyn trends saved' 
     176         WRITE(numout,*) 'size of trtrd = ',jpi*jpj*jpk*nkeep*jpdiatrc 
    163177      ENDIF 
    164178#endif 
Note: See TracChangeset for help on using the changeset viewer.