/[lmdze]/trunk/Sources/dyn3d/ssum.f
ViewVC logotype

Diff of /trunk/Sources/dyn3d/ssum.f

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/libf/dyn3d/cray.f90 revision 3 by guez, Wed Feb 27 13:16:39 2008 UTC trunk/Sources/dyn3d/ssum.f revision 134 by guez, Wed Apr 29 15:47:56 2015 UTC
# Line 1  Line 1 
 subroutine scopy(n, sx, incx, sy, incy)  
   
   ! From cray.F, v 1.1.1.1 2004/05/19 12:53:05  
   
   ! This subroutine should not exist in a Fortran 95 program. If the  
   ! actual arguments are of rank 1 then replace each call to this  
   ! subroutine by the simple statement in this subroutine.  
   
   IMPLICIT NONE  
   
   integer, intent(in):: n, incx, incy  
   real, intent(in):: sx((n-1)*incx+1)  
   real, intent(inout):: sy((n-1)*incy+1)  
   
   !-------------------------  
   
   sy(::incy) = sx(::incx)  
   
 end subroutine scopy  
   
 !***********************************  
   
1  real function ssum(n,sx,incx)  real function ssum(n,sx,incx)
2    
3    ! From cray.F, v 1.1.1.1 2004/05/19 12:53:05    ! From cray.F, version 1.1.1.1 2004/05/19 12:53:05
4    
5    IMPLICIT NONE    IMPLICIT NONE
6    
7    integer, intent(in):: n, incx    integer, intent(in):: n, incx
8    real, intent(in):: sx((n-1)*incx+1)    real, intent(in):: sx((n - 1) * incx + 1)
9    
10    !-----------------------    !-----------------------
11    
12    ssum=sum(sx(::incx))    ssum = sum(sx(::incx))
13    
14  end function ssum  end function ssum

Legend:
Removed from v.3  
changed lines
  Added in v.134

  ViewVC Help
Powered by ViewVC 1.1.21