File: bidon.f

package info (click to toggle)
scilab 2.2-4
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 31,472 kB
  • ctags: 21,963
  • sloc: fortran: 110,983; ansic: 89,717; makefile: 3,016; sh: 1,892; csh: 150; cpp: 101
file content (30 lines) | stat: -rw-r--r-- 706 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      subroutine bidon(a,ia,b,ib,c,ic,d,w,nw)
c  test routine for fort command 
c         (see interf.f is this directory)
c  inputs:  a,b and c
c  integer real double precision resp.
c  size ia,ib,ic resp.
c  outputs: a,b and c times 2
c  and d of same dimension as c with
c  d(k)=c(k)+k.
c  w is a working array of size nw
c!
       dimension a(*),b(*),c(*),d(*),w(nw)
       integer a
       real b
       double precision c,d,w
       do 1 k=1,ia
       a(k)=2*a(k)
    1  continue
       do 2 k=1,ib
       b(k)=2.0d+0*b(k)
   2   continue
       do 3 k=1,ic
       c(k)=2.0d+0*c(k)
    3  continue
       do 4 k=1,ic
       w(k)=dble(k)
       d(k)=w(k)+c(k)
   4   continue
       return
       end