Changeset 1541 for trunk/LMDZ.MARS/libf/phymars/comgeomfi_h.F90
- Timestamp:
- Apr 17, 2016, 10:23:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/comgeomfi_h.F90
r1233 r1541 5 5 6 6 ! These arrays are allocated in phys_state_var_init 7 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: long ! longitudes (rad)8 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: lati ! latitudes (rad)9 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: area ! mesh area (m2)10 REAL,SAVE :: totarea7 ! REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: long ! longitudes (rad) 8 ! REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: lati ! latitudes (rad) 9 ! REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: area ! mesh area (m2) 10 ! REAL,SAVE :: totarea 11 11 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: sinlon 12 12 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: coslon … … 21 21 integer,intent(in) :: ngrid ! number of atmospheric columns 22 22 23 24 allocate(long(ngrid))25 allocate(area(ngrid))23 ! allocate(lati(ngrid)) 24 ! allocate(long(ngrid)) 25 ! allocate(area(ngrid)) 26 26 allocate(sinlat(ngrid)) 27 27 allocate(coslat(ngrid)) … … 41 41 42 42 ! fill "comgeomfi_h" data 43 call SCOPY(ngrid,plon,1,long,1)44 call SCOPY(ngrid,plat,1,lati,1)45 call SCOPY(ngrid,parea,1,area,1)46 totarea=SSUM(ngrid,area,1)43 ! call SCOPY(ngrid,plon,1,long,1) 44 ! call SCOPY(ngrid,plat,1,lati,1) 45 ! call SCOPY(ngrid,parea,1,area,1) 46 ! totarea=SSUM(ngrid,area,1) 47 47 DO ig=1,ngrid 48 sinlat(ig)=sin( lati(ig))49 coslat(ig)=cos( lati(ig))50 sinlon(ig)=sin( long(ig))51 coslon(ig)=cos( long(ig))48 sinlat(ig)=sin(plat(ig)) 49 coslat(ig)=cos(plat(ig)) 50 sinlon(ig)=sin(plon(ig)) 51 coslon(ig)=cos(plon(ig)) 52 52 ENDDO 53 53
Note: See TracChangeset
for help on using the changeset viewer.