Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- From: "Rafik Zurob" <nospam@xxxxxxxxxxx>
- Date: Tue, 6 Dec 2011 17:44:39 -0500
Hi Richard
As usual, your reply to the OP is helpful and solves their problem. I just
have a small nit to pick, if you don't mind. :-)
While the advice of renaming the file might be ok for the Intel compiler,
and you're right that F95 is not that different from F90, I'd like to
caution that it's not a good general practice to always use .f90. Some
compilers, like XL Fortran, see the file extension as a hint from the user
about the language version. For example, XLF defaults to enabling signed
zero, automatic deallocation, and PAD='undefined' in INQUIRE for .f95 files
and defaults to disabling them for .f90 files.
The difference is even bigger once one uses .f03 files, since F2003 was a
major revision of the standard.
Regards
Rafik
Visit the Fortran Cafe at http://ibm.com/rational/cafe
"Richard Maine" <nospam@xxxxxxxxxxxxx> wrote in message
news:1kbusnt.hzv3lf12qsjx2N%nospam@xxxxxxxxxxxxxxxx
Paul Anton Letnes <paul.anton.letnes@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
On 06.12.11 14:16, e p chandler wrote:
---> Try compiling your F95 program as you did with your F90 program. I
suspect that Intel Fortran does not need a different filename extension
or a different command invocation to handle F95 instead of F90. Or do
you need some command line option to check for conformance to F95 as
opposed to F90 standards?
I have had issues with getting intel fortran to compile files named
something.f95. There is a command line flag to get it to take *.f95
files. You'll find it in the manual - I don't remember off the top of my
head.
But an easier solution is to just not do that in the first place. Then
you won't have to go digging through the manual to figure out how to
force the compiler to accept it.
Not to speak of the fact that, Fortran 95 being so liitle changed from
Fortran 90, odds are reasonably high that most files that you might
label as .f95 are probably valid Fortran 90 anyway. If that might not
happen to be true of your particular files, I'd bet it sure is for many
people's.
--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- From: Richard Maine
- Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- References:
- I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- From: Matti
- Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- From: e p chandler
- Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- From: Paul Anton Letnes
- Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- From: Richard Maine
- I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- Prev by Date: Re: Is comp.lang.fortran dead?
- Next by Date: Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- Previous by thread: Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- Next by thread: Re: I have Intel Fortran 2011 XE Composer - but how do i compile a F95 program
- Index(es):
Relevant Pages
|