- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used the Fortran Module Wizard in Intel 9.1to create a fortran wrapper file. The wrapper file mapped IDL enumerations to INTEGER::PARAMETER types. My problem is that the functions that use the enumerations expect INTEGER*2 types so the compiler can't resolve the arguments and I get the warning listed below.
The data type of the actual argument does not match the definition
One way to resolve this is to use the INT2() type conversion function to clear the warnings but this is pretty cumbersome since there are a lot of calls that I would have to change. Alternatively, I could edit the .f90 file created by the module wizard to define the types correctly but I would have to do this everytime I create the file.
Is there a way to coerce the compiler to treat the parameter statements as INTEGER*2 or can I configure the module wizard to force INTEGER*2 parameter statements?
Thanks,
Fred
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you considered using the Fortran Pre-Processor?
e.g.
#define SOMEFUNCTION(a,b) SomeFunction(INT2(a),INT2(b))
Where you tweek the case (letting FORTRAN upcase the function name).
Jim Dempsey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page