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 2038 for branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/CFC/trcini_cfc.F90 – NEMO

Ignore:
Timestamp:
2010-08-02T12:57:40+02:00 (14 years ago)
Author:
cetlod
Message:

Apply the merge to passive tracers, see ticket:693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/CFC/trcini_cfc.F90

    r1581 r2038  
    4646      REAL(wp) ::   zyy  ,  zyd 
    4747      !!---------------------------------------------------------------------- 
     48 
    4849 
    4950      IF(lwp) WRITE(numout,*) 
     
    9596      END DO 
    9697    
    97       DO jn = 31, 98      !   Read file 
    98          READ(inum,*) zyy, p_cfc(jn,1,1), p_cfc(jn,1,2), p_cfc(jn,2,1), p_cfc(jn,2,2) 
    99          WRITE(numout,'(f7.2, 4f8.2)' ) & 
     98      ! file starts in 1931 do jn represent the year in the century.jhh 
     99      ! Read file till the end 
     100      jn = 31 
     101      DO WHILE ( 1 /= 2 ) 
     102         READ(inum,*,END=100) zyy, p_cfc(jn,1,1), p_cfc(jn,1,2), p_cfc(jn,2,1), p_cfc(jn,2,2) 
     103         IF ( lwp) THEN 
     104           WRITE(numout,'(f7.2, 4f8.2)' ) & 
    100105            &         zyy, p_cfc(jn,1,1), p_cfc(jn,1,2), p_cfc(jn,2,1), p_cfc(jn,2,2) 
     106         ENDIF 
     107         jn = jn + 1 
    101108      END DO 
     109 100  npyear = jn - 1 
     110      IF ( lwp) WRITE(numout,*) '    ', npyear ,' years read' 
    102111 
    103112      p_cfc(32,1:2,1) = 5.e-4      ! modify the values of the first years 
     
    138147 
    139148   END SUBROUTINE trc_ini_cfc 
    140     
     149  
    141150#else 
    142151   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.