- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fortran code files with a .F extension should work fine on both Linux* and Mac OS* X since .F, .FOR, or .F90 are all supported as standard Fortran file extensions. A bit more information would be helpful.
Are you running on Linux* or Mac OS* X?
Which specific OS version are you running?
Which Compiler version are you running (a number like 10.1.014). Are running the IA-32 or Intel 64 Compiler?
Please supply your complete build command.
Please cut and paste the output from the compiler that shows the errors.
Did you obtain the download of CMAQ 4.6 from the website below, or from another source?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
gcc -E -traditional -x c yourfile.F > yourfile.f
as a typical command to invoke gnu tradcpp pre-processing.
Among the differences might be that ifort fpp deals with free and fixed formats, while gnu pre-processing doesn't preserve fixed formats.
You could compare the pre-processing of various alternatives on your source files. Besides gnu tradcpp, there is open source sun fpp, and open source coco pre-processor which implements a Fortran standard.
None of the commonly used Fortran pre-processors provide by compilers adhere to a recognized standard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using the Intel 64 compiler version 10.0.016 on a Mac OS 10.5.2 system, a MacBook Pro with a 2.16 GHz Intel Core 2 Duo to be specific.
You would think that "standard Fortran file extensions" would be processed appropriately, but only on a Linux system does the Fortran preprocessor know to act on .F files according to the documentation (.../com.intel.compilers.ifort.docset/Contents/Resources/Documents/ifort/doc_files/index.htm) The other evidence that this is the problem is that manually changing the .F files to .fpp solved the problem. It would be helpful to know how to avoid all of the manual changes if possible. Maybe just writing a script that searches directories for .F and changes them to .fpp would be sufficient.
The compiler basically does not compile the .F files properly and halts at this juncture. Yes, I did download from the site that leads you to download the model from. If you'd like the full build command, I'd be happy to email the file to you.
Thanks!
Shannon
- 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
ifort 10.1 accepts and handles .F source files properly on Mac OS 10.5.2 (see below).
You indicated version is 10.0.016, which pre-dates our explicit support of Mac OS 10.5. It is hard to know if that is really contributing to your error and without seeing the actual error received it is hard to offer any specific advice on how to address the situation.
I recommend you first install our latest 10.1.14 update (m_fc_p_10.1.014) and try that, plus it officially supports your OS.
Next, it would be helpful and appreciated if you could share the details of the error you received.
$ cat hello.F
program test
#ifdef MAC
print *,"hello"
#endif
end
$ ifort -V -D MAC hello.F
Intel Fortran Compiler for applications running on Intel 64, Version 10.1 Build 20080312 Package ID: m_fc_p_10.1.014
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
Intel Fortran 10.1-2047
@(#)PROGRAM:ld PROJECT:ld64-77
Library search paths:
/opt/intel/fce/10.1.014/lib
/usr/lib/i686-apple-darwin9/4.0.1/
/usr/lib/
/usr/lib/gcc/i686-apple-darwin9/4.0.1/x86_64
/usr/lib/gcc/i686-apple-darwin9/4.0.1/
/usr/lib/i686-apple-darwin9/4.0.1
/usr/lib
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
/Network/Library/Frameworks/
$ ./a.out
hello

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