Debian Codegraph @

F77/Source/leqt1s.f

raw symbols SCIP
1 C
2 C Copyright (c) 1997 Silvano Bonazzola
3 C Copyright (c) 1998 Jerome Novak
4 C
5 C This file is part of LORENE.
6 C
7 C LORENE is free software; you can redistribute it and/or modify
8 C it under the terms of the GNU General Public License as published by
9 C the Free Software Foundation; either version 2 of the License, or
10 C (at your option) any later version.
11 C
12 C LORENE is distributed in the hope that it will be useful,
13 C but WITHOUT ANY WARRANTY; without even the implied warranty of
14 C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 C GNU General Public License for more details.
16 C
17 C You should have received a copy of the GNU General Public License
18 C along with LORENE; if not, write to the Free Software
19 C Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 C
21 C
22
23 subroutine leqt1s(a,n,nlc,nuc,ia,b,m,ib,ijob,xl,ier)
24
25 C-------------------------------------------------------------------------
26 C Version tampon de LEQT1B qui utilise lapack
27 C
28 C Relation entre la matrice M(i,j) et son ecriture a bande MB :
29 C 1/ pour IMSL
30 C M(i,j) = MB(l,b) <-> i=l et j=l+b-nlc-1
31 C
32 C 2/ pour LAPACK
33 C M(i,j) = MB(nlc+nuc+1+i-j,j), 1 =< j =< n
34 C max(1,j-nuc) =< i =< min(n,j+nlc)
35 C-------------------------------------------------------------------------
36
37 implicit none
38
39 C
40 C $Id: leqt1s.f,v 1.2 2012/03/30 12:12:42 j_novak Exp $
41 C $Log: leqt1s.f,v $
42 C Revision 1.2 2012/03/30 12:12:42 j_novak
43 C Cleaning of fortran files
44 C
45 C Revision 1.1.1.1 2001/11/20 15:19:30 e_gourgoulhon
46 C LORENE
47 C
48 c Revision 1.3 1998/09/30 12:56:23 novak
49 c parametre nloc mis a 2049 (suffisant??)
50 c
51 c Revision 1.2 1997/05/23 11:39:32 hyc
52 c *** empty log message ***
53 c
54 C Revision 1.1 1997/03/19 19:24:51 eric
55 C Initial revision
56 C
57 C
58 C $Header: /cvsroot/Lorene/F77/Source/leqt1s.f,v 1.2 2012/03/30 12:12:42 j_novak Exp $
59 C
60 C
61 character*120 header
62 data header/'$Header: /cvsroot/Lorene/F77/Source/leqt1s.f,v 1.2 2012/03/30 12:12:42 j_novak Exp $'/
63
64 C Variables d'appel
65 C------------------
66 integer n,nlc,nuc,ia,m,ib,ijob,ier
67 real*8 a(ia,*),xl(ia,*),b(ia,*)
68
69 C Variables locales
70 C------------------
71 integer nloc,nbloc
72 parameter (nloc=2049,nbloc=20)
73
74 real*8 ab(nbloc,nloc)
75 integer ipiv(nloc)
76 integer nb,i,j
77
78 C Protection
79 C-----------
80 nb = 2*nlc + nuc + 1
81 if (n.gt.nloc.or.nb.gt.nbloc) stop 'Dim LeqLap'
82
83 C Traduction de la matrice
84 C-------------------------
85
86 do j=1,n
87 do i=max(1,j-nuc),min(n,j+nlc)
88 ab(nlc+nuc+1+i-j,j) = a(i,j-i+nlc+1)
89 enddo
90 enddo
91
92 call dgbsv(n,nlc,nuc,m,ab,nbloc,ipiv,b,ib,ier)
93 if (ier.ne.0) write (*,*) 'Peut-etre ib : ier',ier,ib
94
95 return
96 end