1!
2!     CalculiX - A 3-dimensional finite element program
3!              Copyright (C) 1998-2021 Guido Dhondt
4!
5!     This program is free software; you can redistribute it and/or
6!     modify it under the terms of the GNU General Public License as
7!     published by the Free Software Foundation(version 2);
8!
9!
10!     This program is distributed in the hope that it will be useful,
11!     but WITHOUT ANY WARRANTY; without even the implied warranty of
12!     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13!     GNU General Public License for more details.
14!
15!     You should have received a copy of the GNU General Public License
16!     along with this program; if not, write to the Free Software
17!     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18!
19      subroutine spooles_read(ad,au,adb,aub,sigma,b,icol,irow,neq,
20     &     nzs,symmetryflag,inputformat,nzs3)
21!
22      implicit none
23!
24      integer icol(*),irow(*),neq,nzs,symmetryflag,inputformat,nzs3,i
25!
26      real*8 ad(*),au(*),adb(*),aub(*),sigma,b(*)
27!
28      open(18,file='spooles_matrix',status='unknown')
29!
30      read(18,101) neq,nzs,symmetryflag,inputformat,nzs3
31      read(18,100) sigma
32      do i=1,neq
33        read(18,100) ad(i)
34      enddo
35      do i=1,nzs
36        read(18,100) au(i)
37      enddo
38      do i=1,neq
39        read(18,100) b(i)
40      enddo
41      do i=1,neq
42        read(18,101) icol(i)
43      enddo
44      do i=1,nzs
45        read(18,101) irow(i)
46      enddo
47 100  format(e20.13)
48 101  format(5i10)
49      close(18)
50      return
51      end
52
53