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 4147 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/TOP_SRC/trcdta.F90 – NEMO

Ignore:
Timestamp:
2013-11-04T12:51:55+01:00 (11 years ago)
Author:
cetlod
Message:

merge in dev_LOCEAN_2013, the 1st development branch dev_r3853_CNRS9_Confsetting, from its starting point ( r3853 ) on the trunk: see ticket #1169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/TOP_SRC/trcdta.F90

    r3827 r4147  
    5353      !!---------------------------------------------------------------------- 
    5454      ! 
    55       INTEGER            :: jl, jn                   ! dummy loop indicies 
     55      INTEGER            :: jl, jn                           ! dummy loop indicies 
    5656      INTEGER            :: ierr0, ierr1, ierr2, ierr3       ! temporary integers 
     57      INTEGER            :: ios                              ! Local integer output status for namelist read 
    5758      CHARACTER(len=100) :: clndta, clntrc 
    5859      REAL(wp)           :: zfact 
    5960      ! 
    60       CHARACTER(len=100) :: cn_dir 
     61      CHARACTER(len=100)            :: cn_dir 
    6162      TYPE(FLD_N), DIMENSION(jptra) :: slf_i     ! array of namelist informations on the fields to read 
    6263      TYPE(FLD_N), DIMENSION(jptra) :: sn_trcdta 
    63       REAL(wp)   , DIMENSION(jptra) :: rn_trfac    ! multiplicative factor for tracer values 
     64      REAL(wp)   , DIMENSION(jptra) :: rn_trfac  ! multiplicative factor for tracer values 
    6465      !! 
    6566      NAMELIST/namtrc_dta/ sn_trcdta, cn_dir, rn_trfac  
     
    9091         WRITE(numout,*) ' ' 
    9192      ENDIF 
    92       !                         ! allocate the arrays (if necessary) 
    93       ! 
    94       cn_dir  = './'            ! directory in which the model is executed 
     93      ! 
    9594      DO jn = 1, jptra 
    9695         WRITE( clndta,'("TR_",I1)' ) jn 
     
    103102      END DO 
    104103      ! 
    105       REWIND( numnat )               ! read nattrc 
    106       READ  ( numnat, namtrc_dta ) 
     104      REWIND( numnat_ref )              ! Namelist namtrc_dta in reference namelist : Passive tracer input data 
     105      READ  ( numnat_ref, namtrc_dta, IOSTAT = ios, ERR = 901) 
     106901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_dta in reference namelist', lwp ) 
     107 
     108      REWIND( numnat_cfg )              ! Namelist namtrc_dta in configuration namelist : Passive tracer input data 
     109      READ  ( numnat_cfg, namtrc_dta, IOSTAT = ios, ERR = 902 ) 
     110902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_dta in configuration namelist', lwp ) 
     111      WRITE ( numont, namtrc_dta ) 
    107112 
    108113      IF( lwp ) THEN 
Note: See TracChangeset for help on using the changeset viewer.