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/phymars/getslopes.F90

    r1528 r1541  
    11subroutine getslopes(ngrid,geopot)
    22   
    3 use comgeomfi_h, only: long, lati
     3use comgeomphy, only: longitude, latitude ! in radians
    44use slope_mod, only: theta_sl, psi_sl
    55use comcstfi_h, only: g, rad, pi
     
    4040   do i=1,nbp_lon
    4141      topogrid(i,j)=geopot(ig0+i)/g
    42       latigrid(i,j)=lati(ig0+i)
    43       longgrid(i,j)=long(ig0+i)
     42      latigrid(i,j)=latitude(ig0+i)
     43      longgrid(i,j)=longitude(ig0+i)
    4444   enddo
    4545enddo
    4646!poles :
    4747topogrid(:,1) = geopot(1)/g
    48 latigrid(:,1) = lati(1)
    49 longgrid(:,1) = long(1)
     48latigrid(:,1) = latitude(1)
     49longgrid(:,1) = longitude(1)
    5050topogrid(:,nbp_lat) = geopot(ngrid)/g
    51 latigrid(:,nbp_lat) = lati(ngrid)
    52 longgrid(:,nbp_lat) = long(ngrid)
     51latigrid(:,nbp_lat) = latitude(ngrid)
     52longgrid(:,nbp_lat) = longitude(ngrid)
    5353
    5454
Note: See TracChangeset for help on using the changeset viewer.