- Timestamp:
- 2017-12-26T17:32:56+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/trcdta.F90
r9124 r9169 55 55 !! - allocates passive tracer data structure 56 56 !!---------------------------------------------------------------------- 57 ! 58 INTEGER,INTENT(IN) :: ntrc ! number of tracers 59 INTEGER :: jl, jn ! dummy loop indices 60 INTEGER :: ierr0, ierr1, ierr2, ierr3 ! temporary integers 61 INTEGER :: ios ! Local integer output status for namelist read 62 CHARACTER(len=100) :: clndta, clntrc 63 REAL(wp) :: zfact 64 ! 65 CHARACTER(len=100) :: cn_dir 57 INTEGER,INTENT(in) :: ntrc ! number of tracers 58 ! 59 INTEGER :: jl, jn ! dummy loop indices 60 INTEGER :: ios, ierr0, ierr1, ierr2, ierr3 ! local integers 61 REAL(wp) :: zfact 62 CHARACTER(len=100) :: clndta, clntrc 63 ! 64 CHARACTER(len=100) :: cn_dir 66 65 TYPE(FLD_N), ALLOCATABLE, DIMENSION(:) :: slf_i ! array of namelist informations on the fields to read 67 66 TYPE(FLD_N), DIMENSION(jpmaxtrc) :: sn_trcdta … … 72 71 ! 73 72 IF( lwp ) THEN 74 WRITE(numout,*) ' '75 WRITE(numout,*) ' 76 WRITE(numout,*) ' 73 WRITE(numout,*) 74 WRITE(numout,*) 'trc_dta_ini : Tracers Initial Conditions (IC)' 75 WRITE(numout,*) '~~~~~~~~~~~ ' 77 76 ENDIF 78 77 ! … … 91 90 n_trc_index(jn) = nb_trcdta 92 91 ENDIF 93 END DO92 END DO 94 93 ! 95 94 ntra = MAX( 1, nb_trcdta ) ! To avoid compilation error with bounds checking 96 95 IF(lwp) THEN 97 WRITE(numout,*) ' ' 98 WRITE(numout,*) ' number of passive tracers to be initialize by data :', ntra 99 WRITE(numout,*) ' ' 96 WRITE(numout,*) 97 WRITE(numout,*) ' number of passive tracers to be initialize by data :', ntra 100 98 ENDIF 101 99 ! 102 100 REWIND( numnat_ref ) ! Namelist namtrc_dta in reference namelist : Passive tracer input data 103 101 READ ( numnat_ref, namtrc_dta, IOSTAT = ios, ERR = 901) 104 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_dta_ini in reference namelist', lwp ) 105 102 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_dta_ini in reference namelist', lwp ) 106 103 REWIND( numnat_cfg ) ! Namelist namtrc_dta in configuration namelist : Passive tracer input data 107 104 READ ( numnat_cfg, namtrc_dta, IOSTAT = ios, ERR = 902 ) 108 902 IF( ios /= 0 )CALL ctl_nam ( ios , 'namtrc_dta_ini in configuration namelist', lwp )105 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtrc_dta_ini in configuration namelist', lwp ) 109 106 IF(lwm) WRITE ( numont, namtrc_dta ) 110 107 … … 121 118 & ' differs from that of tracer : '//TRIM(clntrc)//' ') 122 119 ENDIF 123 WRITE(numout,*) ' '124 WRITE(numout,'(a, i4,3a,e11.3)') ' Read IC file for tracer number :', &120 WRITE(numout,*) 121 WRITE(numout,'(a, i4,3a,e11.3)') ' Read IC file for tracer number :', & 125 122 & jn, ', name : ', TRIM(clndta), ', Multiplicative Scaling factor : ', zfact 126 123 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.