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 494 for trunk/NEMO/TOP_SRC/TRP/trcbbc.F90 – NEMO

Ignore:
Timestamp:
2006-09-01T16:03:49+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_062:CE+RB: use IOM for passive tracers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/TRP/trcbbc.F90

    r352 r494  
    142142      !!---------------------------------------------------------------------- 
    143143      !! * Modules used 
    144       USE ioipsl 
     144      USE iom 
    145145 
    146146      !! * local declarations 
     
    148148      INTEGER  ::   ji, jj              ! dummy loop indices 
    149149      INTEGER  ::   inum = 11           ! temporary logical unit 
    150       INTEGER  ::   itime               ! temporary integers 
    151       REAL(wp) ::   zdate0, zdt         ! temporary scalars 
    152       REAL(wp), DIMENSION(1) :: zdept   ! temporary workspace 
    153       REAL(wp), DIMENSION(jpidta,jpjdta) ::   & 
    154          zlamt, zphit, zdta   ! temporary workspace 
    155150 
    156151      NAMELIST/namtrcbbc/ngeo_trc_flux, ngeo_trc_flux_const  
     
    193188      CASE ( 2 )                ! variable geothermal heat flux 
    194189         ! 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 
    210194         qgh_trd(:,:) = qgh_trd(:,:) * 1.e-3 ! conversion in W/m2 
    211195 
    212196      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 ) 
    216199 
    217200      END SELECT 
Note: See TracChangeset for help on using the changeset viewer.