File: intras.f

package info (click to toggle)
lorene 0.0.0~cvs20161116%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 26,444 kB
  • ctags: 13,953
  • sloc: cpp: 212,946; fortran: 21,645; makefile: 1,750; sh: 4
file content (77 lines) | stat: -rw-r--r-- 2,222 bytes parent folder | download | duplicates (2)
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
72
73
74
75
76
77
C
C   Copyright (c) 1997 Silvano Bonazzola
C
C    This file is part of LORENE.
C
C    LORENE is free software; you can redistribute it and/or modify
C    it under the terms of the GNU General Public License as published by
C    the Free Software Foundation; either version 2 of the License, or
C    (at your option) any later version.
C
C    LORENE is distributed in the hope that it will be useful,
C    but WITHOUT ANY WARRANTY; without even the implied warranty of
C    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
C    GNU General Public License for more details.
C
C    You should have received a copy of the GNU General Public License
C    along with LORENE; if not, write to the Free Software
C    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
C
C

       SUBROUTINE INTRAS(N,CC,OUT)

		implicit double precision (a-h,o-z)

C
C ***** CALCUL DE L'INTEGRALE ENTRE 0 ET 1 D'UNE FONCTION ECHENTILLONEE
C ***** RAREMENT. (FONCTION PAIRE PAR RAPPORT TETA=PI/2)
C
C           ARGUMENTS DE LA ROUTINE:
C
C      N=   NOMBRE DES DEGRES DE LIBERTEE-1
C      CC   = COEFFICIENTS DE TCHEBYTCHEV DE LA FONCTION A INTEGRER.
C      OUT  =VALEURE DE L'INTEGRALE
C
C           Routine testee avec tous les tests de Routine
C           (test de repetition compris le 4/4/1986)
C
C
C $Id: intras.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $
C $Log: intras.f,v $
C Revision 1.2  2012/03/30 12:12:43  j_novak
C Cleaning of fortran files
C
C Revision 1.1.1.1  2001/11/20 15:19:30  e_gourgoulhon
C LORENE
C
c Revision 1.2  1997/05/23  11:40:14  hyc
c *** empty log message ***
c
C Revision 1.1  1997/03/17 20:40:48  hyc
C Initial revision
C
C
C $Header: /cvsroot/Lorene/F77/Source/Poisson2d/intras.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $
C
C
	character*120 header
	data header/'$Header: /cvsroot/Lorene/F77/Source/Poisson2d/intras.f,v 1.2 2012/03/30 12:12:43 j_novak Exp $'/

       DIMENSION CC(*)
       N1=N+1
       C1=CC(N1)
        CC(N1)=C1*.5
       SOM=0
       COS2=-1
       X1=1
       DO 5 L=2,N1
       COSL=-X1/(L+L-1)
       SOM=SOM+CC(L)*(COS2-COSL)
       COS2=COSL
  5    CONTINUE
       OUT=.5*(SOM+CC(1))
       CC(N1)=C1
  100  FORMAT(1X,10D24.16)
       RETURN
       END