- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to compile a project written in CVF with the IFC trial version. I have one problem so far, in my code I use TR15581 arrays (allocatable derived types), which I know are not f95, so I isolated them using #ifdef. For example:
program ifl_toy
TYPE test
#ifdef CVF
INTEGER, ALLOCATABLE, DIMENSION(:) :: A
#else
INTEGER, POINTER, DIMENSION(:) :: A
#endif
END TYPE test
print *, 'hello world'
end program ifl_toy
but while I can get this to compile using the command
ifl ifltoy.f90 /Qfpp2
how would I pass in an fpp command to the compilation (which I need to do in the real project). Say I _want_ to define CVF in the above sample, from the docs, I would guess that I would issue
ifl ifltoy.f90 /Qfpp2 /Qoption,fpp,CVF
but this fails. How would I achieve it?
Many thanks,
matt.
program ifl_toy
TYPE test
#ifdef CVF
INTEGER, ALLOCATABLE, DIMENSION(:) :: A
#else
INTEGER, POINTER, DIMENSION(:) :: A
#endif
END TYPE test
print *, 'hello world'
end program ifl_toy
but while I can get this to compile using the command
ifl ifltoy.f90 /Qfpp2
how would I pass in an fpp command to the compilation (which I need to do in the real project). Say I _want_ to define CVF in the above sample, from the docs, I would guess that I would issue
ifl ifltoy.f90 /Qfpp2 /Qoption,fpp,CVF
but this fails. How would I achieve it?
Many thanks,
matt.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I understand what you want, /DCVF would seem to be the proper approach.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Perfect.
Thanks, again, Steve.
BTW, IMHO the VF compiler options are MUCH clearer than the IFC options.
Matt.
Thanks, again, Steve.
BTW, IMHO the VF compiler options are MUCH clearer than the IFC options.
Matt.

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