| 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 TF9S(N,Y,CC,CS) |
| 23 | |
| 24 | implicit double precision (a-h,o-z) |
| 25 | |
| 26 | C |
| 27 | C **** ROUTINE TRANSFORMATION DE FOURIER. |
| 28 | C ***** LES DIMENSIONS MINIMUN POUR LES TABLEAUX SONT N+1 POUR CC ET CS |
| 29 | C**** F DOIT AVOIR COMME DIMENSION N+3 |
| 30 | C *** LES ARGUMENS DE LA ROUINE SONT: N NOMBRE DES POINTS D'ECHAN- |
| 31 | C *** TILLONAGE,(=2**m*3**l*5**j), |
| 32 | C *** Y TABLEAU CONTENANT LA FONCTION DONT ON VEUT CALCULER LA T.F. |
| 33 | C *** CC COMPOS.COSINUS,CS COMP.SINUS DE LA TRANSFORMEE DE FOURIER |
| 34 | C |
| 35 | C Routine testee le 10/9/1985 |
| 36 | C |
| 37 | C |
| 38 | C $Id: tf9s.f,v 1.2 2012/03/30 12:12:42 j_novak Exp $ |
| 39 | C $Log: tf9s.f,v $ |
| 40 | C Revision 1.2 2012/03/30 12:12:42 j_novak |
| 41 | C Cleaning of fortran files |
| 42 | C |
| 43 | C Revision 1.1.1.1 2001/11/20 15:19:30 e_gourgoulhon |
| 44 | C LORENE |
| 45 | C |
| 46 | c Revision 1.2 1997/05/23 11:38:04 hyc |
| 47 | c *** empty log message *** |
| 48 | c |
| 49 | C Revision 1.1 1997/03/17 20:42:33 hyc |
| 50 | C Initial revision |
| 51 | C |
| 52 | C |
| 53 | C $Header: /cvsroot/Lorene/F77/Source/tf9s.f,v 1.2 2012/03/30 12:12:42 j_novak Exp $ |
| 54 | C |
| 55 | C |
| 56 | character*120 header |
| 57 | data header/'$Header: /cvsroot/Lorene/F77/Source/tf9s.f,v 1.2 2012/03/30 12:12:42 j_novak Exp $'/ |
| 58 | |
| 59 | DIMENSION TRIGS(1600),IFAX(40),CC(*),CS(*),Y(*) |
| 60 | |
| 61 | DATA NDIM/-1/ |
| 62 | save ndim,n2,n1,n21,ifax,trigs |
| 63 | |
| 64 | IF(N.LT.1033) GO TO 10 |
| 65 | PRINT 110,N |
| 66 | 110 FORMAT(10X,'N=',I4,'. N DOIT ETRE < 1033') |
| 67 | CALL EXIT |
| 68 | 10 CONTINUE |
| 69 | IF(NDIM.EQ.N) GO TO 20 |
| 70 | CALL FAX(IFAX,N,3) |
| 71 | CALL FFTRIG(TRIGS,N,3) |
| 72 | N2=N/2 |
| 73 | N1=N+1 |
| 74 | N21=N2+1 |
| 75 | C |
| 76 | NDIM=N |
| 77 | 300 FORMAT(10X,'LA SUB TF EST APPELLEE POUR LA PREMIERE FOIS') |
| 78 | C |
| 79 | C |
| 80 | C |
| 81 | 20 CONTINUE |
| 82 | DO 30 L=1,N1 |
| 83 | Y(L)=Y(L)+Y(L) |
| 84 | 30 CONTINUE |
| 85 | CALL FFT991(Y,CC,TRIGS,IFAX,1,1,N,1,-1) |
| 86 | DO 31 L=1,N21 |
| 87 | CC(L)=Y(L+L-1) |
| 88 | CS(L)=-Y(L+L) |
| 89 | 31 CONTINUE |
| 90 | 100 FORMAT(1X,'TF',10D12.4) |
| 91 | RETURN |
| 92 | END |