comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Passing keywords to DLM
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Passing keywords to DLM [message #40374] Sun, 08 August 2004 12:43 Go to previous message
jargoogle is currently offline  jargoogle
Messages: 11
Registered: April 2004
Junior Member
Hello,

I'm adapting Henry Chapman's DLM (itself modified from an earlier
version) for calling the FFTW v3 fast fourier transform library.

Henry's dlm:
http://groups.google.com/groups?as_umsgid=b8f3f671.031213215 8.5cda69f4@posting.google.com

I'm working on an Ultra Sparc 5 running Solaris 7 using IDL version
5.6 and Solaris compilers. So far, so good, except that only 2 of 7
keywords are recognized. Of the keywords, (X, Y, Z, MEDIUM, HI,
OVERWRITE, and CLEANUP), only MEDIUM and HI are recognized.

All are treated as read only input boolean keywords. In the kw_pars[]
array, they all look something like:

{"X", IDL_TYP_LONG, 1, IDL_KW_ZERO|IDL_KW_VALUE|15, 0,
IDL_KW_OFFSETOF(x)},

My IDL wrapper syntax looks something like:

dataOut = fftdft3D_IDL(dataIn, direction, [x=x, y=y, z=z,
medium=medium, $
hi=hi, overwrite=overwrite, cleanup=cleanup])

The following perform as expected:
dataOut = fftdft3D_IDL(findgen(16,16,16), -1)
dataOut = fftdft3D_IDL(findgen(16,16,16), -1, /medium)
dataOut = fftdft3D_IDL(findgen(16,16,16), -1, /hi)

While no other option using the keywords works:
dataOut = fftdft3D_IDL(findgen(16,16,16), -1, /x)
% Loaded DLM: FFTDFT3D_IDL.
% Keyword X not allowed in call to: FFTDFT3D_IDL
% Execution halted at: $MAIN$

Now, I thought that perhaps there was an ambiguity with single letter
keywords, but that doesn't explain why overwrite and cleanup are not
recognized. They generate the same "not allowed" message.

Yet the keywords that are "not allowed" are all syntactically the same
as far as the c-code declarations of kw_pars[] and KW_RESULT are
concerned.

The DLM:
MODULE fftdft3D_IDL
DESCRIPTION 3-dimensional Complex fftw (v.3)
VERSION $Revision: 1.0 $
BUILD_DATE $Date: Thu Aug 5 09:19:05 MDT 2004$
SOURCE J. Roberts
FUNCTION fftdft3D_IDL 1 2 KEYWORDS

Any ideas?

Stumped,
JG.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: mesh_volume and tetra_volume
Next Topic: OpenW units ...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 04:51:05 PDT 2025

Total time taken to generate the page: 0.23662 seconds