- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm developing a series of dll's to use with Abaqus. I'm using free-form fortran with the .F90 file extension and the -fpp option. I have managed to get the libraries successfully linked with Abaqus and the libraries are working fine when running Abaqus in single threading mode. I'm now trying to get the libraries working with mpi and multi threading.
To facilitate this, Abaqus provides a series of files that need to be included with a #include directive, for example #include <SMAAspUserSubroutines.hdr>. I'm able to locate the file and direct the pre-processor to additional dependencies. However, I'm getting a series of errors originating from the SMAAspUserSubroutines.hdr file. As far as I can tell this is down to the SMAAspUserSubroutines.hdr file being written in extended line length fixed format fortran.
If I change the file extension on my source to .FOR I can remove the errors originating from the SMAAspUserSubroutines.hdr but it gets replaces with a series of errors from my own source... I did just change the file extension.
Is there a way to tell the pre-processor to treat .hdr files or #include files as fixed format whilst still having my source written in free-form? Or do I need to rewrite my source file in fixed format?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried the !DEC$ NOFREEFORM directive (followed later by !DEC$ FREEFORM) in your source file ahead of the #include?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried the !DEC$ NOFREEFORM directive (followed later by !DEC$ FREEFORM) in your source file ahead of the #include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's worked. I wrapped the #include in the directives you suggested.
!DEC$ NOFREEFORM
#include <SMAAspUserSubroutines.hdr>
!DEC$ FREEFORM
Thank you Ian that's saved me a lot of headaches time.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page