Ignore:
Timestamp:
Apr 18, 2016, 8:45:35 AM (9 years ago)
Author:
emillour
Message:

Generic GCM:

  • fix for 1D in writediagfi to enable writing at "ecritphy" rate.
  • move iniprint.h to "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.GENERIC/libf/dynphy_lonlat/phystd/iniphysiq_mod.F90

    r1529 r1542  
    1616use control_mod, only: nday
    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 surf_heat_transp_mod, only: ini_surf_heat_transp
    2424use infotrac, only : nqtot ! number of advected tracers
     
    170170
    171171offset=klon_mpi_begin-1
    172 airephy(1:klon_omp)=airefi(offset+klon_omp_begin:offset+klon_omp_end)
    173 cuphy(1:klon_omp)=cufi(offset+klon_omp_begin:offset+klon_omp_end)
    174 cvphy(1:klon_omp)=cvfi(offset+klon_omp_begin:offset+klon_omp_end)
    175 rlond(1:klon_omp)=lonfi(offset+klon_omp_begin:offset+klon_omp_end)
    176 rlatd(1:klon_omp)=latfi(offset+klon_omp_begin:offset+klon_omp_end)
     172cell_area(1:klon_omp)=airefi(offset+klon_omp_begin:offset+klon_omp_end)
     173dx(1:klon_omp)=cufi(offset+klon_omp_begin:offset+klon_omp_end)
     174dy(1:klon_omp)=cvfi(offset+klon_omp_begin:offset+klon_omp_end)
     175longitude(1:klon_omp)=lonfi(offset+klon_omp_begin:offset+klon_omp_end)
     176latitude(1:klon_omp)=latfi(offset+klon_omp_begin:offset+klon_omp_end)
    177177
    178178! copy over preff , ap() and bp()
     
    191191! and do some initializations
    192192call inifis(klon_omp,nlayer,nqtot,pdayref,punjours,nday,ptimestep, &
    193             rlatd,rlond,airephy,prad,pg,pr,pcpp)
     193            latitude,longitude,cell_area,prad,pg,pr,pcpp)
    194194
    195195!$OMP END PARALLEL
Note: See TracChangeset for help on using the changeset viewer.