Debian Codegraph @

F77/Source/Poisson2d/dixr1s.f

raw symbols SCIP
1 C
2 C Copyright (c) 1998 Silvano Bonazzola
3 C
4 C This file is part of LORENE.
5 C
6 C LORENE is free software; you can redistribute it and/or modify
7 C it under the terms of the GNU General Public License as published by
8 C the Free Software Foundation; either version 2 of the License, or
9 C (at your option) any later version.
10 C
11 C LORENE is distributed in the hope that it will be useful,
12 C but WITHOUT ANY WARRANTY; without even the implied warranty of
13 C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 C GNU General Public License for more details.
15 C
16 C You should have received a copy of the GNU General Public License
17 C along with LORENE; if not, write to the Free Software
18 C Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 C
20 C
21 C
22 C $Id: dixr1s.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $
23 C $Log: dixr1s.f,v $
24 C Revision 1.2 2012/03/30 12:12:43 j_novak
25 C Cleaning of fortran files
26 C
27 C Revision 1.1.1.1 2001/11/20 15:19:30 e_gourgoulhon
28 C LORENE
29 C
30 c Revision 1.1 1998/06/22 10:40:59 eric
31 c Initial revision
32 c
33 C
34 C $Header: /cvsroot/Lorene/F77/Source/Poisson2d/dixr1s.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $
35 C
36 C
37
38 SUBROUTINE DIXR1S(N,IND,CS,CC)
39
40 IMPLICIT double PRECISION (A-H,O-Z)
41
42 C
43 C ROUTINE MULTIPLIANT OU DIVISANT UNE FONCTION AVEC ECHAN-
44 C TILLONNAGE RAREFIE' A L'ORIGINE PAR x. LA FONCTION AINSI
45 C TRAITEE CHANGE DE PARITE'. (DI(vision) (par) X (d'une
46 C fonction) R(arefiee) S(imple precision).
47 C
48 C ARGUMENTS DE LA ROUTINE:
49 C
50 C N =NOMBRE DE DEGRES DE LIBERTE'
51 C
52 C IND =PARAMETRE:
53 C
54 C IND=0 LA FONCTION PAIRE EST DIVISEE PAR x ET
55 C RENDUE IMPAIRE,
56 C IND=1 LA FONCTION IMPAIRE EST DIVISEE PAR x
57 C ET RENDUE PAIRE,
58 C IND=2 LA FONCTION PAIRE EST MULTIPLIEE PAR x
59 C ET RENDUE IMPAIRE,
60 C IND=3 LA FONCTION IMPAIRE EST MULTIPLIEE PAR x
61 C ET RENDUE PAIRE.
62 C
63 C CS =TABLEAU INPUT
64 C CC =TABLEAU OUTPUT
65 C
66 C## Routine testee le 13/04/85
67 C
68 C......................................................................
69 C
70 character*120 header
71 data header/'$Header: /cvsroot/Lorene/F77/Source/Poisson2d/dixr1s.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $'/
72
73 DIMENSION CS(*),CC(*)
74 C
75 C CAS IND=0: LA FONCTION PAIRE EST DIVISEE PAR x
76 C
77 N1=N+1
78 C
79 IF(IND.EQ.0) THEN
80 C
81 CC(1)=-CS(1)
82 DO L=2,N
83 CC(L)=-CC(L-1)-CS(L)-CS(L)
84 ENDDO
85 CC(N1)=0
86 RETURN
87 ENDIF
88 C
89 C CAS IND=3: LA FONCTION IMPAIRE EST MULTIPLIEE PAR x
90 C
91 IF(IND.EQ.3) THEN
92 C
93 CC(1)=-CS(1)
94 DO L=2,N
95 CC(L)=-(CS(L)+CS(L-1))*.5D+00
96 ENDDO
97 CC(N1)=-CS(N)
98 RETURN
99 ENDIF
100 C
101 C CAS IND=2: LAFONCTION PAIRE EST MULTIPLIEE PAR x
102 C
103 IF(IND.EQ.2) THEN
104 DO L=1,N
105 CC(L)=-(CS(L)+CS(L+1))*.5D+00
106 ENDDO
107 CC(N1)=0
108 RETURN
109 ENDIF
110 C
111 C CAS IND=1: LA FONCTION IMPAIRE EST DIVISEE PAR x
112 C
113 IF(IND.EQ.1) THEN
114 C
115 CC(N)=-CS(N)-CS(N)
116 DO L=1,N-1
117 LL=N-L
118 CC(LL)=-(CS(LL)+CS(LL)+CC(LL+1))
119 ENDDO
120 CC(N1)=0
121 ENDIF
122 C
123 C 100 FORMAT(1X,'PIMP',1X,5D24.16)
124 C 101 FORMAT(1X,' ')
125 RETURN
126 END