Changeset 969


Ignore:
Timestamp:
May 23, 2013, 10:27:44 AM (12 years ago)
Author:
emillour
Message:

Generic/Universal? GCM:
Further cleanup in outputs: enable output of a scalar in writediagfi in parallel mode and remove obsolete io* routines.
EM

Location:
trunk
Files:
5 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/physiq.F90

    r965 r969  
    16871687
    16881688!     Subsurface temperatures
    1689         call writediagsoil(ngrid,"tsurf","Surface temperature","K",2,tsurf)
    1690         call writediagsoil(ngrid,"temp","temperature","K",3,tsoil)
     1689!        call writediagsoil(ngrid,"tsurf","Surface temperature","K",2,tsurf)
     1690!        call writediagsoil(ngrid,"temp","temperature","K",3,tsoil)
    16911691
    16921692!     Total energy balance diagnostics
     
    18771877        IF ( ALLOCATED(coslon)) DEALLOCATE(coslon)
    18781878
    1879 #ifdef CPP_PARA
    1880         ! close diagfi.nc in parallel
    1881            call iotd_fin
    1882 #endif
    1883 
    18841879      endif
    18851880
  • trunk/LMDZ.GENERIC/libf/phystd/writediagfi.F

    r965 r969  
    258258      if ( MOD(zitau+1,irythme) .eq.0.) then
    259259
    260 !#ifdef CPP_PARA
    261 !         !! parallel: we cannot use the usual writediagfi method
    262 !         if (dim .eq. 2) then
    263 !             dimvert = 1
    264 !         else if (dim == 3) then
    265 !             dimvert = llm
    266 !         endif
    267 !         call iophys_ecrit(nom,dimvert,titre,unite,px)
    268 !#else
    269 
    270260! Compute/write/extend 'Time' coordinate (date given in days)
    271261! (done every "first call" (at given time level) to writediagfi)
     
    505495              write(*,*) "***** PUT_VAR problem in writediagfi"
    506496              write(*,*) "***** with ",nom
    507               write(*,*) 'ierr=', ierr
     497              write(*,*) 'ierr=', ierr,": ",NF_STRERROR(ierr)
    508498c             call abort
    509499           endif
     
    513503
    514504        else if (dim.eq.0) then
    515          if (is_parallel) then
    516            write(*,*) "writediagfi error: dim=0 not implemented ",
    517      &                 "in parallel mode"
    518            stop
    519          endif
    520505
    521506           dx0 = px (1,1)
    522507
     508          if (is_master) then
     509           ! only the master writes to output
    523510           ierr= NF_INQ_VARID(nid,nom,varid)
    524511           if (ierr /= NF_NOERR) then
     
    546533              write(*,*) "***** PUT_VAR matter in writediagfi"
    547534              write(*,*) "***** with ",nom
    548               write(*,*) 'ierr=', ierr
     535              write(*,*) 'ierr=', ierr,": ",NF_STRERROR(ierr)
    549536c             call abort
    550537           endif
     538
     539          endif !of if (is_master)
    551540
    552541        endif ! of if (dim.eq.3) elseif(dim.eq.2)...
Note: See TracChangeset for help on using the changeset viewer.