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 1255 for trunk/NEMO/TOP_SRC/CFC/trcini_cfc.F90 – NEMO

Ignore:
Timestamp:
2009-01-13T11:20:17+01:00 (15 years ago)
Author:
cetlod
Message:

minor modifications in all top models, see ticket:299

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/CFC/trcini_cfc.F90

    r1146 r1255  
    4444      !! ** Method  : - Read the namcfc namelist and check the parameter values 
    4545      !!---------------------------------------------------------------------- 
    46       INTEGER  ::   ji, jj, jn, jl, jm 
     46      INTEGER  ::   ji, jj, jn, jl, jm, js 
    4747      REAL(wp) ::   zyy  ,  zyd 
    4848      !!---------------------------------------------------------------------- 
     
    5555      ! Initialization of boundaries conditions 
    5656      ! ---------------------------------------  
    57       qtr   (:,:,:) = 0.e0 
    58       xphem (:,:)   = 0.e0 
    59       DO jn = jp_cfc0, jp_cfc1 
     57      xphem (:,:)    = 0.e0 
     58      DO jl = 1, jp_cfc 
     59         jn = jp_cfc0 + jl - 1 
    6060         DO jm = 1, jphem 
    61             DO jl = 1, jpyear 
    62                p_cfc(jl,jm,jn) = 0.0 
     61            DO js = 1, jpyear 
     62               p_cfc(js,jm,jn) = 0.0 
    6363            END DO 
    6464         END DO 
     
    6868      ! Initialization of qint in case of  no restart  
    6969      !---------------------------------------------- 
     70      qtr_cfc(:,:,:) = 0.e0 
    7071      IF( .NOT. lrsttr ) THEN     
    7172         IF(lwp) THEN 
     
    7374            WRITE(numout,*) 'Initialization de qint ; No restart : qint equal zero ' 
    7475         ENDIF 
    75          DO jn = jp_cfc0, jp_cfc1 
    76             trn(:,:,:,jn) = 0.e0 
    77             qint(:,: ,jn) = 0.e0 
     76         DO jl = 1, jp_cfc 
     77            jn = jp_cfc0 + jl - 1 
     78            trn     (:,:,:,jn) = 0.e0 
     79            qint_cfc(:,:  ,jn) = 0.e0 
    7880         END DO 
    7981      ENDIF 
     
    9698    
    9799      DO jn = 31, 98      !   Read file 
    98          READ(inum,*) zyy, p_cfc(jn,1,jp11), p_cfc(jn,1,jp12), & 
    99             &              p_cfc(jn,2,jp11), p_cfc(jn,2,jp12) 
     100         READ(inum,*) zyy, p_cfc(jn,1,1), p_cfc(jn,1,2), p_cfc(jn,2,1), p_cfc(jn,2,2) 
    100101         WRITE(numout,'(f7.2, 4f8.2)' ) & 
    101             &         zyy, p_cfc(jn,1,jp11), p_cfc(jn,1,jp12), & 
    102             &              p_cfc(jn,2,jp11), p_cfc(jn,2,jp12) 
     102            &         zyy, p_cfc(jn,1,1), p_cfc(jn,1,2), p_cfc(jn,2,1), p_cfc(jn,2,2) 
    103103      END DO 
    104104 
    105       p_cfc(32,1:2,jp11) = 5.e-4      ! modify the values of the first years 
    106       p_cfc(33,1:2,jp11) = 8.e-4 
    107       p_cfc(34,1:2,jp11) = 1.e-6 
    108       p_cfc(35,1:2,jp11) = 2.e-3 
    109       p_cfc(36,1:2,jp11) = 4.e-3 
    110       p_cfc(37,1:2,jp11) = 6.e-3 
    111       p_cfc(38,1:2,jp11) = 8.e-3 
    112       p_cfc(39,1:2,jp11) = 1.e-2 
     105      p_cfc(32,1:2,1) = 5.e-4      ! modify the values of the first years 
     106      p_cfc(33,1:2,1) = 8.e-4 
     107      p_cfc(34,1:2,1) = 1.e-6 
     108      p_cfc(35,1:2,1) = 2.e-3 
     109      p_cfc(36,1:2,1) = 4.e-3 
     110      p_cfc(37,1:2,1) = 6.e-3 
     111      p_cfc(38,1:2,1) = 8.e-3 
     112      p_cfc(39,1:2,1) = 1.e-2 
    113113       
    114114      IF(lwp) THEN        ! Control print 
     
    117117         DO jn = 30, 100 
    118118            WRITE(numout, '( 1I4, 4F9.2)')   & 
    119                &         jn, p_cfc(jn,1,jp11), p_cfc(jn,2,jp11), & 
    120                &             p_cfc(jn,1,jp12), p_cfc(jn,2,jp12) 
     119               &         jn, p_cfc(jn,1,1), p_cfc(jn,2,1), p_cfc(jn,1,2), p_cfc(jn,2,2) 
    121120         END DO 
    122121      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.