Debian Codegraph @

F77/Source/Poisson2d/tfixms.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
23 subroutine tfixms(n,n64,cc,y)
24 c
25 c## routine modifiee le 08.10.1993: ajout des save
26 c
27
28 implicit double precision(a-h,o-z)
29
30 c
31 c routine pour la tf inverse multiple.
32 c
33 c arguments de la suroutine:
34 c
35 c n =nombre des dgres de libertee. (n nombre pair=
36 c a 2**p*3**q*5**r p,q,r nombres entiers.
37 c
38 c cc =coefficients cosinus et sinus de n64 fonctions.
39 c y = output des fonctions dans l'espace des x.
40 c les valeures des ces fonctions sont stockees
41 c comme dans la sub tf.
42 c cette routine est specialisee et ne doit etre employee
43 c que avec les routines chixms,fuci2s,fuci3s...
44 c
45 C
46 C $Id: tfixms.f,v 1.2 2012/03/30 12:12:44 j_novak Exp $
47 C $Log: tfixms.f,v $
48 C Revision 1.2 2012/03/30 12:12:44 j_novak
49 C Cleaning of fortran files
50 C
51 C Revision 1.1.1.1 2001/11/20 15:19:30 e_gourgoulhon
52 C LORENE
53 C
54 c Revision 1.2 1997/05/23 11:36:59 hyc
55 c *** empty log message ***
56 c
57 C Revision 1.1 1997/03/17 20:22:08 hyc
58 C Initial revision
59 C
60 C
61 C $Header: /cvsroot/Lorene/F77/Source/Poisson2d/tfixms.f,v 1.2 2012/03/30 12:12:44 j_novak Exp $
62 C
63 C
64 character*120 header
65 data header/'$Header: /cvsroot/Lorene/F77/Source/Poisson2d/tfixms.f,v 1.2 2012/03/30 12:12:44 j_novak Exp $'/
66
67 dimension y(*),cc(*),ifax(64),trigs(1600)
68 data ndim/0/
69 data nfon/0/
70 data jjj/0/
71 c##
72 save ndim, nfon, jjj, ifax, trigs, n65, nm65
73
74 n1040=1040
75 if(n.gt.n1040) then
76 print 800,n
77 800 format(10x,'dimension insuffisantes dans la routine'
78 , ,' tfm, n=',i5,' > a la dimension de trigs*2/3=',i5)
79 endif
80 c
81 if(n.eq.ndim) go to 1
82 call fax(ifax,n,3)
83 call fftrig(trigs,n,3)
84 c
85 1 continue
86 if(nfon.eq.n64.and.ndim.eq.n) go to 4
87 c
88 c si n64 est un multiple de 8 le temps calcul du cray
89 c etre multiplie par un facteur 4. pour eviter
90 c cela on socke les donnees tous les n64+1 intervalles
91 c au lieu de n64.(dans le cas de l input en parallel)
92 c
93 nfon=n64
94 ndim=n
95 n65=n64
96 if((n64/8)*8.eq.n64) n65=n64+1
97 c
98 nm65=n*n65
99 c
100 4 continue
101 c
102 c tf inverse en parallel
103 c
104 call fft991(cc,y,trigs,ifax,n65,1,n,n64,1)
105 c
106 do 12 l=1,nm65
107 y(l)=cc(l)*.5
108 12 continue
109 101 format(1x,'tfm')
110 100 format(1x,'tfm',10d12.4)
111 return
112 c
113 end