source: LMDZ6/trunk/libf/misc/cray.F90 @ 5286

Last change on this file since 5286 was 5246, checked in by abarral, 11 days ago

Convert fixed-form to free-form sources .F -> .{f,F}90
(WIP: some .F remain, will be handled in subsequent commits)

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 561 bytes
RevLine 
[524]1!
2! $Header$
3!
4#ifdef CRAY
[5246]5SUBROUTINE riencray
6END SUBROUTINE riencray
[524]7#else
[5246]8subroutine scopy(n,sx,incx,sy,incy)
9  !
10  IMPLICIT NONE
11  !
12  integer :: n,incx,incy,ix,iy,i
13  real :: sx((n-1)*incx+1),sy((n-1)*incy+1)
14  !
15  iy=1
16  ix=1
17  do i=1,n
18     sy(iy)=sx(ix)
19     ix=ix+incx
20     iy=iy+incy
21  end do
22  !
23  return
24end subroutine scopy
[524]25
[5246]26function ssum(n,sx,incx)
27  !
28  IMPLICIT NONE
29  !
30  integer :: n,incx,i,ix
31  real :: ssum,sx((n-1)*incx+1)
32  !
33  ssum=0.
34  ix=1
35  do i=1,n
36     ssum=ssum+sx(ix)
37     ix=ix+incx
38  end do
39  !
40  return
41end function ssum
[524]42#endif
Note: See TracBrowser for help on using the repository browser.