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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/iniphysiq_mod.F90

    r1524 r1541  
    1616
    1717use comgeomphy, only : initcomgeomphy, &
    18                        airephy, & ! physics grid area (m2)
    19                        cuphy, & ! cu coeff. (u_covariant = cu * u)
    20                        cvphy, & ! cv coeff. (v_covariant = cv * v)
    21                        rlond, & ! longitudes
    22                        rlatd ! latitudes
     18                       cell_area, & ! physics grid area (m2)
     19                       dx, & ! cu coeff. (u_covariant = cu * u)
     20                       dy, & ! cv coeff. (v_covariant = cv * v)
     21                       longitude, & ! longitudes (rad)
     22                       latitude ! latitudes (rad)
    2323use infotrac, only : nqtot ! number of advected tracers
    2424use comgeomfi_h, only: ini_fillgeom
     
    164164     
    165165offset=klon_mpi_begin-1
    166 airephy(1:klon_omp)=airefi(offset+klon_omp_begin:offset+klon_omp_end)
    167 cuphy(1:klon_omp)=cufi(offset+klon_omp_begin:offset+klon_omp_end)
    168 cvphy(1:klon_omp)=cvfi(offset+klon_omp_begin:offset+klon_omp_end)
    169 rlond(1:klon_omp)=lonfi(offset+klon_omp_begin:offset+klon_omp_end)
    170 rlatd(1:klon_omp)=latfi(offset+klon_omp_begin:offset+klon_omp_end)
     166cell_area(1:klon_omp)=airefi(offset+klon_omp_begin:offset+klon_omp_end)
     167dx(1:klon_omp)=cufi(offset+klon_omp_begin:offset+klon_omp_end)
     168dy(1:klon_omp)=cvfi(offset+klon_omp_begin:offset+klon_omp_end)
     169longitude(1:klon_omp)=lonfi(offset+klon_omp_begin:offset+klon_omp_end)
     170latitude(1:klon_omp)=latfi(offset+klon_omp_begin:offset+klon_omp_end)
    171171
    172172! copy some fundamental parameters to physics
     
    175175                         day_ini,hour_ini,punjours,ptimestep, &
    176176                         prad,pg,pr,pcpp)
    177 call ini_fillgeom(klon_omp,rlatd,rlond,airephy)
     177call ini_fillgeom(klon_omp,latitude,longitude,cell_area)
    178178call conf_phys(klon_omp,nlayer,nqtot)
    179179
Note: See TracChangeset for help on using the changeset viewer.