!-------------------------------------- LICENCE BEGIN ------------------------------------ !Environment Canada - Atmospheric Science and Technology License/Disclaimer, ! version 3; Last Modified: May 7, 2008. !This is free but copyrighted software; you can use/redistribute/modify it under the terms !of the Environment Canada - Atmospheric Science and Technology License/Disclaimer !version 3 or (at your option) any later version that should be found at: !http://collaboration.cmc.ec.gc.ca/science/rpn.comm/license.html ! !This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; !without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. !See the above mentioned License/Disclaimer for more details. !You should have received a copy of the License/Disclaimer along with this software; !if not, you can write to: EC-RPN COMM Group, 2121 TransCanada, suite 500, Dorval (Quebec), !CANADA, H9P 1J3; or send e-mail to service.rpn@ec.gc.ca !-------------------------------------- LICENCE END -------------------------------------- ! CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC C C FFTPACK 5.0 C Copyright (C) 1995-2004, Scientific Computing Division, C University Corporation for Atmospheric Research C Licensed under the GNU General Public License (GPL) C C Authors: Paul N. Swarztrauber and Richard A. Valent C C $Id: tables_8.ftn,v 1.4 2011/11/29 15:45:20 armaanl Exp $ C CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCSUBROUTINE TABLES_8 (IDO,IP,WA) 1 #include "taglam4d.cdk"
REAL*8 WA(IDO,IP-1,2) real*8 TPI,ARGZ,ARG1,ARG2,ARG3,ARG4 C ! TPI = 8.*ATAN(1.) TPI = 8.D0*DATAN(1.D0) ARGZ = TPI/REAL(IP) ARG1 = TPI/REAL(IDO*IP) ! print *,'TABLES_8: TPI,ARGZ,ARG1=',TPI,ARGZ,ARG1 DO 110 J=2,IP ARG2 = REAL(J-1)*ARG1 DO 100 I=1,IDO ARG3 = REAL(I-1)*ARG2 WA(I,J-1,1) = DCOS(ARG3) WA(I,J-1,2) = DSIN(ARG3) ! print *,'TABLES_8: I,J,ARG3,WA(I,J-1,1),WA(I,J-1,2)=', ! & I,J,ARG3,WA(I,J-1,1),WA(I,J-1,2) 100 CONTINUE IF (IP .LE. 5) GO TO 110 ARG4 = REAL(J-1)*ARGZ WA(1,J-1,1) = DCOS(ARG4) WA(1,J-1,2) = DSIN(ARG4) 110 CONTINUE RETURN END