Changeset 494 for trunk/NEMO/TOP_SRC/TRP/trcbbc.F90
- Timestamp:
- 2006-09-01T16:03:49+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/TOP_SRC/TRP/trcbbc.F90
r352 r494 142 142 !!---------------------------------------------------------------------- 143 143 !! * Modules used 144 USE io ipsl144 USE iom 145 145 146 146 !! * local declarations … … 148 148 INTEGER :: ji, jj ! dummy loop indices 149 149 INTEGER :: inum = 11 ! temporary logical unit 150 INTEGER :: itime ! temporary integers151 REAL(wp) :: zdate0, zdt ! temporary scalars152 REAL(wp), DIMENSION(1) :: zdept ! temporary workspace153 REAL(wp), DIMENSION(jpidta,jpjdta) :: &154 zlamt, zphit, zdta ! temporary workspace155 150 156 151 NAMELIST/namtrcbbc/ngeo_trc_flux, ngeo_trc_flux_const … … 193 188 CASE ( 2 ) ! variable geothermal heat flux 194 189 ! read the geothermal fluxes in mW/m2 195 clname = 'passivetrc_geothermal_heating' 196 itime = 1 197 zlamt(:,:) = 0. 198 zphit(:,:) = 0. 199 IF(lwp) WRITE(numout,*) ' *** variable geothermal heat flux read in ', clname, ' file' 200 CALL restini( clname, jpidta, jpjdta, zlamt, zphit, 1, zdept , clname, & 201 itime, zdate0, zdt, inum , domain_id=nidom ) 202 CALL restget( inum, 'heatflow', jpidta, jpjdta, 1, 0, .FALSE., zdta ) 203 DO jj = 1, nlcj 204 DO ji = 1, nlci 205 qgh_trd(ji,jj) = zdta(mig(ji),mjg(jj)) 206 END DO 207 END DO 208 209 CALL restclo( inum ) 190 CALL iom_open ( 'geothermal_heating_trc.nc', inum ) 191 CALL iom_get ( inum, jpdom_data, 'heatflow', qgh_trd ) 192 CALL iom_close (inum) 193 210 194 qgh_trd(:,:) = qgh_trd(:,:) * 1.e-3 ! conversion in W/m2 211 195 212 196 CASE DEFAULT 213 IF(lwp) WRITE(numout,cform_err) 214 IF(lwp) WRITE(numout,*) ' bad flag value for ngeo_trc_flux = ', ngeo_trc_flux 215 nstop = nstop + 1 197 WRITE(ctmp1,*) ' bad flag value for ngeo_flux = ', ngeo_flux 198 CALL ctl_stop( ctmp1 ) 216 199 217 200 END SELECT
Note: See TracChangeset
for help on using the changeset viewer.