Debian Codegraph @

F77/Source/Poisson2d/intras.f

raw symbols SCIP
1 C
2 C Copyright (c) 1997 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
22 SUBROUTINE INTRAS(N,CC,OUT)
23
24 implicit double precision (a-h,o-z)
25
26 C
27 C ***** CALCUL DE L'INTEGRALE ENTRE 0 ET 1 D'UNE FONCTION ECHENTILLONEE
28 C ***** RAREMENT. (FONCTION PAIRE PAR RAPPORT TETA=PI/2)
29 C
30 C ARGUMENTS DE LA ROUTINE:
31 C
32 C N= NOMBRE DES DEGRES DE LIBERTEE-1
33 C CC = COEFFICIENTS DE TCHEBYTCHEV DE LA FONCTION A INTEGRER.
34 C OUT =VALEURE DE L'INTEGRALE
35 C
36 C Routine testee avec tous les tests de Routine
37 C (test de repetition compris le 4/4/1986)
38 C
39 C
40 C $Id: intras.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $
41 C $Log: intras.f,v $
42 C Revision 1.2 2012/03/30 12:12:43 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.2 1997/05/23 11:40:14 hyc
49 c *** empty log message ***
50 c
51 C Revision 1.1 1997/03/17 20:40:48 hyc
52 C Initial revision
53 C
54 C
55 C $Header: /cvsroot/Lorene/F77/Source/Poisson2d/intras.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $
56 C
57 C
58 character*120 header
59 data header/'$Header: /cvsroot/Lorene/F77/Source/Poisson2d/intras.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $'/
60
61 DIMENSION CC(*)
62 N1=N+1
63 C1=CC(N1)
64 CC(N1)=C1*.5
65 SOM=0
66 COS2=-1
67 X1=1
68 DO 5 L=2,N1
69 COSL=-X1/(L+L-1)
70 SOM=SOM+CC(L)*(COS2-COSL)
71 COS2=COSL
72 5 CONTINUE
73 OUT=.5*(SOM+CC(1))
74 CC(N1)=C1
75 100 FORMAT(1X,10D24.16)
76 RETURN
77 END