Rev | Line | |
---|
[8] | 1 | ! $Header: /opt/cvsroot/jmfft/lib/jmfftfax.f90,v 1.2 2004/04/01 15:48:31 teuler v8 $ |
---|
| 2 | ! JMFFTLIB : A library of portable fourier transform subroutines |
---|
| 3 | ! emulating Cray SciLib |
---|
| 4 | ! Author : Jean-Marie Teuler, CNRS, teuler@lcp.u-psud.fr |
---|
| 5 | ! |
---|
| 6 | ! Permission is granted to copy and distribute this file or modified |
---|
| 7 | ! versions of this file for no fee, provided the copyright notice and |
---|
| 8 | ! this permission notice are preserved on all copies. |
---|
| 9 | |
---|
| 10 | subroutine fftfax(n,ifax,trigs) |
---|
| 11 | |
---|
| 12 | implicit none |
---|
| 13 | |
---|
| 14 | ! Constantes pour les arguments |
---|
| 15 | integer, parameter :: nfax = 19 |
---|
| 16 | |
---|
| 17 | ! Arguments |
---|
| 18 | integer, intent(in) :: n |
---|
| 19 | real(kind=8), dimension(0:2*n-1), intent(out) :: trigs |
---|
| 20 | integer, dimension(0:nfax-1), intent(inout) :: ifax |
---|
| 21 | |
---|
| 22 | ! Variables locales |
---|
| 23 | integer :: ntrigs |
---|
| 24 | integer :: ifin |
---|
| 25 | character(len=*), parameter :: nomsp = 'FFTFAX' |
---|
| 26 | |
---|
| 27 | ! Positionnement a 0 du code de retour |
---|
| 28 | call jmsetcode(0) |
---|
| 29 | |
---|
| 30 | ntrigs = 2*n |
---|
| 31 | |
---|
| 32 | ! Factorisation de n dans ifax |
---|
| 33 | call jmfact(n,ifax,nfax,0,ifin) |
---|
| 34 | |
---|
| 35 | ! Preparation des tables |
---|
| 36 | call jmtable(trigs,ntrigs,0,n) |
---|
| 37 | |
---|
| 38 | end subroutine fftfax |
---|
Note: See
TracBrowser
for help on using the repository browser.