Changeset 368 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Nov 9, 2011, 4:40:11 PM (13 years ago)
Author:
rwordsworth
Message:

.nc saves in physiq.F90 adapted to new diagfi.def format.
More info added to gases.def warnings.

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
5 edited

Legend:

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

    r305 r368  
    4646      real albedoocean
    4747      parameter (albedoocean=0.07)
    48 !      parameter (albedoocean=0.2)
    4948      real albedoice
    5049      save albedoice
     
    101100
    102101      oceanbulkavg=.false.
    103       activerunoff=.true.
     102      activerunoff=.false.
    104103      oceanalbvary=.false.
    105104
  • trunk/LMDZ.GENERIC/libf/phystd/physiq.F90

    r365 r368  
    20052005        call writediagfi(ngrid,"tsurf","Surface temperature","K",2,tsurf)
    20062006        call writediagfi(ngrid,"ps","Surface pressure","Pa",2,ps)
    2007 
    2008         if(1.eq.2)then
    20092007        call writediagfi(ngrid,"temp","temperature","K",3,zt)
    20102008        call writediagfi(ngrid,"u","Zonal wind","m.s-1",3,zu)
     
    20122010        call writediagfi(ngrid,"w","Vertical wind","m.s-1",3,pw)
    20132011        call writediagfi(ngrid,'p','Pressure','Pa',3,pplay)
    2014         endif
    20152012
    20162013!     Total energy balance diagnostics
     
    20362033        !call writediagfi(ngrid,"vdifNC","H2O loss vdifc","kg m-2 s-1",2,vdifcncons)
    20372034        !call writediagfi(ngrid,"cadjNC","H2O loss convadj","kg m-2 s-1",2,cadjncons)
    2038         call writediagfi(ngrid,'rnat','Terrain type',' ',2,real(rnat))
     2035        !call writediagfi(ngrid,'rnat','Terrain type',' ',2,real(rnat))
    20392036        !call writediagfi(ngrid,'pphi','Geopotential',' ',3,pphi)
    2040         !print*,vdifcncons
    2041         !call abort
    20422037
    20432038!     Output aerosols
    2044 !        call writediagfi(ngridmx,'CO2ice_reff','CO2ice_reff','m',3,reffrad(1,1,1))
    2045 !        call writediagfi(ngridmx,'H2Oice_reff','H2Oice_reff','m',3,reffrad(1,1,2))
    2046 !        call writediagfi(ngridmx,'CO2ice_reffcol','CO2ice_reffcol','um kg m^-2',2,reffcol(1,1))
    2047 !        call writediagfi(ngridmx,'H2Oice_reffcol','H2Oice_reffcol','um kg m^-2',2,reffcol(1,2))
     2039        call writediagfi(ngridmx,'CO2ice_reff','CO2ice_reff','m',3,reffrad(1,1,1))
     2040        call writediagfi(ngridmx,'H2Oice_reff','H2Oice_reff','m',3,reffrad(1,1,2))
     2041        call writediagfi(ngridmx,'CO2ice_reffcol','CO2ice_reffcol','um kg m^-2',2,reffcol(1,1))
     2042        call writediagfi(ngridmx,'H2Oice_reffcol','H2Oice_reffcol','um kg m^-2',2,reffcol(1,2))
    20482043
    20492044!     Output tracers
    20502045       if (tracer) then
    20512046        do iq=1,nq
    2052 !          call writediagfi(ngrid,noms(iq),noms(iq),'kg/kg',3,zq(1,1,iq))
     2047          call writediagfi(ngrid,noms(iq),noms(iq),'kg/kg',3,zq(1,1,iq))
    20532048!          call writediagfi(ngridmx,trim(noms(iq))//'_surf',trim(noms(iq))//'_surf',  &
    20542049!                          'kg m^-2',2,qsurf(1,iq) )
  • trunk/LMDZ.GENERIC/libf/phystd/radinc_h.F90

    r305 r368  
    7070      integer, parameter :: L_NTREF   = 7
    7171      integer, parameter :: L_REFVAR  = 7   ! earth / earlymars
    72       ! CO2_H2Ovar / N2OCO2rich_H2Ovar / N2OCO2poor_H2Ovar
     72!      ! CO2_H2Ovar / N2OCO2rich_H2Ovar / N2OCO2poor_H2Ovar
    7373!       integer, parameter :: L_REFVAR = 4    ! N2_CH4
    7474
  • trunk/LMDZ.GENERIC/libf/phystd/su_gases.F90

    r253 r368  
    3434             write(*,*) "sugases.F90: error, wrong number of gases:"
    3535             write(*,*) "ngas=",ngas," whereas ngasmx=",ngasmx
     36             write(*,*) "Check that the values in gases.def and gases.h match..."
    3637             call abort
    3738          endif
     
    4041             read(90,*,iostat=ierr) gnom(igas)
    4142             if (ierr.ne.0) then
    42                 write(*,*) 'sugases.F90: error reading gas names...'
     43                write(*,*) 'sugases.F90: error reading gas names in gases.def...'
    4344                call abort
    4445             endif
     
    4950             read(90,*,iostat=ierr) gfrac(igas)
    5051             if (ierr.ne.0) then
    51                 write(*,*) 'sugases.F90: error reading gas molar fractions...'
     52                write(*,*) 'sugases.F90: error reading gas molar fractions in gases.def...'
    5253                call abort
    5354             endif
  • trunk/LMDZ.GENERIC/libf/phystd/sugas_corrk.F90

    r304 r368  
    6060         write(*,*)'The file ',file_path(1:LEN_TRIM(file_path))
    6161         write(*,*)'was not found by sugas_corrk.F90, exiting.'
     62         write(*,*)'Check that your path to datagcm in datafile.h is correct and that'
     63         write(*,*)'the corrkdir you chose in callphys.def exists.'
    6264         call abort
    6365      endif
     
    108110         print*,'The size of your radiative transfer mixing ratio array does '
    109111         print*,'not match the value given in Q.dat, exiting.'
     112         print*,'Check the value of L_NREFVAR in radinc_h.F90.'
    110113         call abort
    111114      endif
     
    117120         print*,'Gas ',n,' is ',gnom(n)
    118121         if(gnom(n).ne.gastype(n))then
    119             print*,'Name of a gas in radiative transfer data (',gastype(n),') does not', &
    120                  'match that in gases.def (',gnom(n),'), exiting.'
     122            print*,'Name of a gas in radiative transfer data (',gastype(n),') does not ', &
     123                 'match that in gases.def (',gnom(n),'), exiting. You should compare ', &
     124                 'gases.def with Q.dat in your radiative transfer directory.'
    121125            call abort
    122126         endif
     
    143147         write(*,*)'The file ',file_path(1:LEN_TRIM(file_path))
    144148         write(*,*)'was not found by sugas_corrk.F90, exiting.'
     149         write(*,*)'Check that your path to datagcm in datafile.h is correct and that'
     150         write(*,*)'the corrkdir you chose in callphys.def exists.'
    145151         call abort
    146152      endif
Note: See TracChangeset for help on using the changeset viewer.