Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

F2008 warning

nvaneck
New Contributor I
1,342 Views

I turned of warning for F2008 and in some routines I get the warning

 

Fortran 2008 specifies that an elemental intrinsic function here be of type integer or character and each argument must be an initialization expr of type integer or character .   [ABS]

So I commented out all lines with ABS in them and I stijll get the warning.  Many other routines use ABS without this warning.  What does it mean?

0 Kudos
11 Replies
andrew_4619
Honored Contributor III
1,342 Views

I would suggest giving an example line of code that gives the message, including the declarations of the variable(s) used...

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,342 Views

Can you show enough of the code so we can place this in context?

Jim Dempsey

0 Kudos
nvaneck
New Contributor I
1,342 Views

It doesn't give a line number, just highlights the first line of code.....

0 Kudos
mecej4
Honored Contributor III
1,342 Views
It doesn't give a line number, just highlights the first line of code
If you are not familiar with the multiple output windows in the IDE, use a command window, where there is only one output device to which STDOUT and STDERR outputs get sent.

At a minimum, you have to be willing to present the source code for, without that, we could try to compile a million Fortran programs at random and still fail to reproduce the errors that you mentioned.

0 Kudos
mecej4
Honored Contributor III
1,342 Views

There is a USE SPACE statement in the file, so please attach the source code for that module, too.

0 Kudos
nvaneck
New Contributor I
1,342 Views

Here's the message from the compile. Attached is the file it is complaining about, in which there is no use of ABS... The include file SPACE also has no use of ABS...

0 Kudos
nvaneck
New Contributor I
1,342 Views

Yeah, I couldn't get it to upload at first, but it now has the file. Here's SPACE file..

0 Kudos
mecej4
Honored Contributor III
1,342 Views

Can't see how it's relevant

Neal, please bear with me for a few minutes. It is relevant because without it I cannot compile the main subroutine. Secondly, space.f90 has USE OSIRMODS in it, so I am going to need the source for that as well; in fact, we need all the module sources that are in the chain from subroutine DATA_DOC. You can, if you prefer, zip all the needed sources into a single archive and attach just the archive instead of all the single files.

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,342 Views

DATA_DOC has "USE SPACE"
SPACE.MOD is not a module produced with your supplied "space.f90"
Therefor, whatever is being USE'd is not your space.f90, it is some other space.mod file.

Please clarify what is being used.

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
1,342 Views

I managed to compile these two sources by declaring empty types from those that come from the OSIRIS module, but could not reproduce the error. It would be best if you could attach a ZIP of the project showing the problem and including the buildlog.htm with the warning. If you don't want to post it here, you can use "Send author a message" and do it that way, or use Intel Premier Support.

0 Kudos
nvaneck
New Contributor I
1,342 Views

I appreaciate all the suggestions and help, but as it stands, I think I'll just let it remain a curiosiy not worth pursuing. Obviously no one else has hit this, and perhaps it does not exist in release 13 (I have 12),  I'll probably upgrade to the next major release, and then see if it still happens.

0 Kudos
Reply