File: intdeff.f

package info (click to toggle)
scilab 4.0-12
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 100,640 kB
  • ctags: 57,333
  • sloc: ansic: 377,889; fortran: 242,862; xml: 179,819; tcl: 42,062; sh: 10,593; ml: 9,441; makefile: 4,377; cpp: 1,354; java: 621; csh: 260; yacc: 247; perl: 130; lex: 126; asm: 72; lisp: 30
file content (71 lines) | stat: -rw-r--r-- 1,654 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
      subroutine intdeff
c     Copyright INRIA/ENPC
      INCLUDE '../stack.h'
c     
      integer mode(2),top0
      integer nocomp,profile

      logical opened,eptover,cremat
      integer iadr,sadr

      save opened,lunit,job,icomp
c     
      data nocomp/23/,profile/25/
c     
      iadr(l)=l+l-1
      sadr(l)=(l/2)+1
c     
      top0=top-rhs+1
      icomp=1
      if(rhs.eq.3) then
         ilc=iadr(lstk(top))
         if(istk(ilc).eq.10) then
            if(istk(ilc+5+istk(ilc+1)*istk(ilc+2)).eq.nocomp) then
               icomp=0
            elseif(istk(ilc+5+istk(ilc+1)*istk(ilc+2)).eq.profile) then
               icomp=2
            endif
         endif
         rhs=rhs-1
         top=top-1
      endif
      if(rhs.ne.2) then
         call error(42)
         return
      endif
      if(lhs.gt.1) then
         call error(41)
         return
      endif
      
      il=iadr(lstk(top))
      nlines=1
      call getfun(0,nlines)
      if(err.gt.0.or.err1.gt.0) goto 999
      if(icomp.ne.0) then
         call unsfdcopy(lstk(top+1)-lstk(top),stk(lstk(top)),1,
     $       stk(lstk(top0)),1) 
         lstk(top0+1)=lstk(top0)+lstk(top+1)-lstk(top)
         call putid(idstk(1,top0),idstk(1,top))
         top=top0
         if(icomp.eq.2) then
            top=top+1
            if (.not.cremat('getf',top,0,1,1,lr1,lc1)) return
            stk(lr1)=2
            rhs=2
         else
            rhs=1
         endif
         lhs=1
c     *call* comp
         fun=13
         fin=6
      else
         call stackp(idstk(1,top),0)
         top=top-1
         call objvide('deff',top)
         fun=0
      endif

 999  return
      end