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

Ignore:
Timestamp:
2007-12-16T15:46:18+01:00 (16 years ago)
Author:
gm
Message:

dev_001_GM - create 1 trclsm_ module by trc model (CFC, LOBSTER, PISCES..) + some bug corrections

File:
1 edited

Legend:

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

    r766 r768  
    1212   !! trc_ini_cfc      : CFC model initialisation 
    1313   !!---------------------------------------------------------------------- 
     14   USE oce_trc         ! Ocean variables 
    1415   USE par_trc         ! TOP parameters 
     16   USE trc             ! TOP variables 
    1517   USE trccfc          ! CFC sms trends 
    1618 
     
    2830   !!---------------------------------------------------------------------- 
    2931   !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)  
    30    !! $Id:$  
     32   !! $Id$  
    3133   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    3234   !!---------------------------------------------------------------------- 
     
    5254      ! Initialization of boundaries conditions 
    5355      ! ---------------------------------------  
    54       pp_cfc(:,:,:) = 0.e0 
    5556      qtr   (:,:,:) = 0.e0 
    5657      xphem (:,:)   = 0.e0 
    57       DO jn = 1, jptra 
     58      DO jn = jp_cfc0, jp_cfc1 
    5859         DO jm = 1, jphem 
    5960            DO jl = 1, jpyear 
     
    7172            WRITE(numout,*) 'Initialization de qint ; No restart : qint equal zero ' 
    7273         ENDIF 
    73          DO jn = 1, jptra 
     74         DO jn = jp_cfc0, jp_cfc1 
    7475            qint(:,:,jn) = 0.e0 
    7576         END DO 
     
    8889      REWIND(inum) 
    8990       
    90  
    91       ! Skip over 1st six descriptor lines 
    92       !----------------------------------- 
    93       DO jm = 1, 6 
     91      DO jm = 1, 6        ! Skip over 1st six descriptor lines 
    9492         READ(inum,'(1x)') 
    9593      END DO 
    9694    
    97     
    98       !   Read file 
    99       ! --------- 
    100       DO jn = 31, 98 
     95      DO jn = 31, 98      !   Read file 
    10196         READ(inum,*) zyy, p_cfc(jn,1,jp11), p_cfc(jn,1,jp12), & 
    10297            &              p_cfc(jn,2,jp11), p_cfc(jn,2,jp12) 
     
    106101      END DO 
    107102 
    108       p_cfc(32,1:2,jp11) = 5.e-4 
     103      p_cfc(32,1:2,jp11) = 5.e-4      ! modify the values of the first years 
    109104      p_cfc(33,1:2,jp11) = 8.e-4 
    110105      p_cfc(34,1:2,jp11) = 1.e-6 
     
    115110      p_cfc(39,1:2,jp11) = 1.e-2 
    116111       
    117        
    118       IF(lwp) THEN 
     112      IF(lwp) THEN        ! Control print 
    119113         WRITE(numout,*) 
    120114         WRITE(numout,*) ' Year   p11HN    p11HS    p12HN    p12HS ' 
Note: See TracChangeset for help on using the changeset viewer.