Changeset 1233 for trunk/LMDZ.MARS/libf/phymars/comgeomfi_h.F90
- Timestamp:
- May 1, 2014, 12:06:13 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/comgeomfi_h.F90
r1224 r1233 24 24 allocate(long(ngrid)) 25 25 allocate(area(ngrid)) 26 27 end subroutine ini_comgeomfi_h28 29 subroutine ini_sincosgeom(ngrid)30 31 implicit none32 integer,intent(in) :: ngrid ! number of atmospheric columns33 integer :: ig34 35 if (.not.allocated(lati)) then36 PRINT*,"lati not allocated. did you run ini_comgeomfi_h?"37 STOP38 endif39 40 26 allocate(sinlat(ngrid)) 41 27 allocate(coslat(ngrid)) 42 28 allocate(sinlon(ngrid)) 43 29 allocate(coslon(ngrid)) 30 31 end subroutine ini_comgeomfi_h 32 33 subroutine ini_fillgeom(ngrid,plat,plon,parea) 34 35 implicit none 36 INTEGER,INTENT(IN) :: ngrid ! number of atmospheric columns 37 REAL,INTENT(IN) :: plat(ngrid),plon(ngrid),parea(ngrid) 38 EXTERNAL SSUM 39 REAL SSUM 40 integer :: ig 41 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) 44 47 DO ig=1,ngrid 45 48 sinlat(ig)=sin(lati(ig)) … … 48 51 coslon(ig)=cos(long(ig)) 49 52 ENDDO 50 end subroutine ini_sincosgeom 53 54 end subroutine ini_fillgeom 51 55 52 56 end module comgeomfi_h
Note: See TracChangeset
for help on using the changeset viewer.