- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, All
I was trying to compile some fortran codes wirtten by others and had some annoying problems:
1. All source code files are with the extension ".f", all the comments start with "C"; however, Intel Fortran (in VS2005) can only recognize the comment symbol "C" in one file (this is written in f90), for other files, it reported errors.
2. After I modified the file extension from ".f" to ".for", now Intel Fortran can recognize all comment lines, but I had the following error messges:
Error1 Error: If the actual argument is scalar, the corresponding dummy argument shall be scalar unless the actual argument is an element of an array that is not an assumed-shape or pointer array, or a substring of such an element.
When I use PVF for the same code, I can compile and run without any extra setting and effort. Is there any suggestion about how to use Intel Fortran?
Thanks a lot
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The second problem is an error in your code that the PGI compiler does not detect. You need to fix the code. It is not legal in Fortran to pass a scalar to an array.
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page