Ignore:
Timestamp:
Apr 17, 2016, 10:23:21 PM (9 years ago)
Author:
emillour
Message:

Mars GCM:

  • fix for 1D in writediagfi to enable writing at "ecritphy" rate.
  • removed iniprint.h from phymars/dyn1d since it is in "misc"
  • Some code cleanup in anticipation of future updates:
    • changed variable names in comgeomphy.F90: give them more explicit names: rlond => longitude , rlatd => latitude, airephy => cell_area, cuphy => dx , cvphy => dy
    • removed long(), lati() and area() from comgeomfi_h.F90, use longitude(), latitude() and cell_are() from comgeomphy.F90 instead

EM

Location:
trunk/LMDZ.MARS/libf/phymars/dyn1d
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F

    r1535 r1541  
    55      use infotrac, only: nqtot, tname
    66      use comsoil_h, only: volcapa, layer, mlayer, inertiedat, nsoilmx
    7       use comgeomfi_h, only: lati, long, area, sinlat, ini_fillgeom
     7      use comgeomfi_h, only: sinlat, ini_fillgeom
    88      use surfdat_h, only: albedodat, z0_default, emissiv, emisice,
    99     &                     albedice, iceradius, dtemisice, z0,
     
    1212      use slope_mod, only: theta_sl, psi_sl
    1313      use phyredem, only: physdem0,physdem1
    14       use comgeomphy, only: initcomgeomphy, airephy, cuphy, cvphy,
    15      &                      rlond, rlatd
     14      use comgeomphy, only: initcomgeomphy, cell_area
    1615      use planete_h, only: year_day, periheli, aphelie, peri_day,
    1716     &                     obliquit, emin_turb, lmixmin
     
    534533c   -------------------------------------
    535534c   mesh surface (not a very usefull quantity in 1D)
    536       area(1)=1.E+0
    537       airephy(1)=area(1)
     535      cell_area(1)=1.E+0
    538536
    539537c   surface geopotential is not used (or useful) since in 1D
     
    560558         u(ilayer)=gru
    561559         v(ilayer)=grv
     560         w(ilayer)=0 ! default: no vertical wind
    562561      ENDDO
    563562
     
    580579      IF (co2ice(1).eq.1.E+0) THEN
    581580         emis=emisice(1) ! northern hemisphere
    582          IF(lati(1).LT.0) emis=emisice(2) ! southern hemisphere
     581         IF(latitude(1).LT.0) emis=emisice(2) ! southern hemisphere
    583582      ENDIF
    584583
     
    654653         ! thermo=0: initialize over all atmospheric layers
    655654         thermo=0
    656          call inichim_newstart(q,psurf,sig,nq,lati,long,area,
    657      $   thermo,qsurf)
     655         call inichim_newstart(q,psurf,sig,nq,latitude,longitude,
     656     $   cell_area,thermo,qsurf)
    658657      endif
    659658
     
    683682c  It is needed to transfert physics variables to "physiq"...
    684683
    685       call physdem0("startfi.nc",long,lati,nsoilmx,ngrid,llm,nq,
    686      .              dtphys,float(day0),time,area,
    687      .              albedodat,inertiedat,zmea,zstd,zsig,zgam,zthe)
     684      call physdem0("startfi.nc",longitude,latitude,nsoilmx,ngrid,llm,
     685     &              nq,dtphys,float(day0),time,cell_area,
     686     &              albedodat,inertiedat,zmea,zstd,zsig,zgam,zthe)
    688687      call physdem1("startfi.nc",nsoilmx,ngrid,llm,nq,
    689688     .              dtphys,time,
     
    703702         call solarlong(day*1.0,zls)
    704703         write(103,*) 'Ls=',zls*180./pi
    705          write(103,*) 'Lat=', lati(1)*180./pi
     704         write(103,*) 'Lat=', latitude(1)*180./pi
    706705         write(103,*) 'Tau=', tauvis/odpref*psurf
    707706         write(103,*) 'RunEnd - Atmos. Temp. File'
    708707         write(103,*) 'RunEnd - Atmos. Temp. File'
    709708         write(104,*) 'Ls=',zls*180./pi
    710          write(104,*) 'Lat=', lati(1)
     709         write(104,*) 'Lat=', latitude(1)
    711710         write(104,*) 'Tau=', tauvis/odpref*psurf
    712711         write(104,*) 'RunEnd - Atmos. Temp. File'
     
    753752
    754753c       For some tests : No coriolis force at equator
    755 c       if(lati(1).eq.0.) then
     754c       if(latitude(1).eq.0.) then
    756755          DO ilayer=1,nlayer
    757756             du(ilayer)=du(ilayer)+ (gru-u(ilayer))/1.e4
Note: See TracChangeset for help on using the changeset viewer.