Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

dhifwtws_.F

Go to the documentation of this file.
00001 c dhifwtws_.F
00002 c*********************************************************************
00003 c*          (c) Copyright 1994-2002 Brown Deer Technology, LLC.
00004 c*                        All rights reserved.
00005 c*********************************************************************
00006 
00007         subroutine dhifwtws(Sizef,ns,size,wdata,sdata,ws,iflag)
00008 
00009         implicit none
00010 
00011 c       ****************************************
00012 c       ***** COMMON BLOCKS AND PARAMETERS *****
00013 c       ****************************************
00014 
00015 #include "stormdef.h"
00016         double precision INVSQRT2
00017         parameter( INVSQRT2 = STORMDEF_MATHCONST_INVSQRT2d0 )
00018 
00019 c       *******************************
00020 c       ***** VARIABLES EXCHANGED *****
00021 c       *******************************
00022 
00023         integer Sizef
00024         integer ns
00025         integer size
00026         double precision wdata(Sizef)
00027         double precision sdata(Sizef)
00028         double precision ws(Sizef)
00029         integer iflag
00030 
00031 c       ***************************
00032 c       ***** LOCAL VARIABLES *****
00033 c       ***************************
00034 
00035         integer i,size1,size2
00036 
00037 c       ******************************
00038 c       ***** EXTERNAL FUNCTIONS *****
00039 c       ******************************
00040 
00041 #ifdef STORM_FWT_FCHECKUSAGE
00042         if (size.lt.ns) then 
00043            iflag=1
00044            return
00045         endif
00046 #endif
00047 
00048         if (size.eq.ns) then
00049            do i=1,size
00050               sdata(i)=wdata(i)
00051            enddo
00052            iflag=0
00053            return
00054         endif
00055 
00056         do i=1,size
00057            ws(i)=wdata(i)
00058         enddo
00059 
00060         size1=ns
00061 10      continue
00062         size2=size1
00063         size1=2*size1
00064         do i=1,size2
00065            sdata(2*i-1) = ( ws(i) + ws(size2+i) ) * INVSQRT2
00066            sdata(2*i) = ( ws(i) - ws(size2+i) ) * INVSQRT2
00067         enddo
00068 
00069         if (size1.lt.size) then
00070            do i=1,size1
00071                ws(i)=sdata(i)
00072            enddo
00073            goto 10
00074         endif
00075 
00076 #ifdef STORM_FWT_FCHECKUSAGE
00077         if (size1.ne.size) then
00078            iflag=2
00079            return
00080         endif
00081 #endif
00082 
00083         iflag=0
00084 
00085         return
00086         end
00087 

Generated on Mon May 31 21:38:45 2004 for SR2k4 Assembler by doxygen 1.3.6