Ignore:
Timestamp:
Jun 28, 2013, 4:57:08 PM (11 years ago)
Author:
tnavarro
Message:

a trick to compile testphys1d with debug option

File:
1 edited

Legend:

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

    r900 r998  
    2525real grady(iim,jjm+1) ! y: longitude-wise topography gradient, increasing westward
    2626integer i,j,ig0
     27integer id2,idm1 ! a trick to compile testphys1d with debug option
    2728
     29id2  = 2
     30idm1 = iim-1
    2831
    2932! rearrange topography on a 2d array
     
    5356     gradx(i,j) = gradx(i,j) / rad
    5457   enddo
    55    grady(1,j) = (topogrid(2,j) - topogrid(iim,j)) / (2*pi+longgrid(2,j)-longgrid(iim,j))
     58   grady(1,j) = (topogrid(id2,j) - topogrid(iim,j)) / (2*pi+longgrid(id2,j)-longgrid(iim,j))
    5659   grady(1,j) = grady(1,j) / rad
    57    grady(iim,j) = (topogrid(1,j) - topogrid(iim-1,j)) / (2*pi+longgrid(1,j)-longgrid(iim-1,j))
     60   grady(iim,j) = (topogrid(1,j) - topogrid(idm1,j)) / (2*pi+longgrid(1,j)-longgrid(idm1,j))
    5861   grady(iim,j) = grady(iim,j) / rad
    5962   do i=2,iim-1
Note: See TracChangeset for help on using the changeset viewer.