Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Running a simple console code

freesun
Beginner
1,515 Views

Hi All;

Firstly i d like to note that am a new bee in VS environment.

I have just installed the intel fortran 6 within VS2003.And now trying to run a simple code.It 's succesfull but the black output screen pops-up and then suddenly disappears in sec :).Could you please guide me what should i change from the setting;) to see output window constantly :)

Thanks in advance.

0 Kudos
9 Replies
Steven_L_Intel1
Employee
1,515 Views

Welcome to the forum.

Which version of Intel Visual Fortran are you using? There is no version 6.

The problem you are having occurs when you start the program under the debugger. The debugger does not "step into" the Fortran code, it just runs it. If you have not set a breakpoint, then it will exit as you found.

If you simply want to run the program, select Debug > Start Without Debugging. If you want to debug, set a breakpoint at the first executable line and then start it running. To set a breakpoint, click to the left of the source line.

0 Kudos
freesun
Beginner
1,515 Views

Thank you Steve.I appreciated your quick answer.Regarding your question the version i am using now is Intel Fortran Compiler 8.1 within VS.NET 2003.

Guessing that you may have an idea i would like to ask you.Previously some others had already asked this question but i couldnt get the solution way.what i am gonna do is running my subroutine codes developed under VS.NET 2003 using intel fortran console application within Msc MARC software in which any user subroutine can be embedded as long as the required compiler exists such as given in this link.

http://simcompanion.mscsoftware.com/infocenter/index?page=content&id=KB8017364

Description (Answer)

Note that per the MSC.Marc 2005 & 2005r2 Release Guides, section VII,  List of Build and Supported Platforms.  MSC.Marc 2005 & 2005r2 for Windows supports
a) Compaq Visual Fortran 6.6b
b) Intel Fortran 8.0

I couldnt understand the given solution ( my question is a broad one) if you give me some idea maybe i can solve the relation between Msc Marc and Intel fortran compiler.

Thank you again.

0 Kudos
Steven_L_Intel1
Employee
1,515 Views

The problem described in that article is caused by the user not establishing the Intel Fortran development environment correctly. If you do it as a project in Visual Studio, or use the supplied shortcuts for a Fortran Build Environment", you won't see those errors.

That article was written in 2005. I don't know of a reason why you could not use version 11.1 with that software, but it is not for me to say.

0 Kudos
freesun
Beginner
1,515 Views

Hi Steve;

Since in my uni the available version is that i have to use that version and i wonder if the 8.1 version is supported by Msc Marc coz in that article it says the verison must be used is 8.0.

And also you noted that;

"Intel Fortran development environment correctly. If you do it as a project in Visual Studio, or use the supplied shortcuts for a Fortran Build Environment", you won't see those errors."

Could you please a little clearly explain the topic that you mentioned above or guide me to a tutorial from which i can learn a little more about defining "fortran development environment" or "built environment" correctly.I d like to learn let's say these primitive steps to build much more on it.

Thanks in advance

0 Kudos
TimP
Honored Contributor III
1,515 Views
ifort 8.1 definitely should work in place of 8.0. Surely, however, support for such an old version of Marc has expired, so you're on your own. Opening the ifort cmd window from the Start menu is a likely way of establishing the ifort environment in which to run a compile and link script for such an application.
0 Kudos
freesun
Beginner
1,515 Views

Hi Tim;

"support for such an old version of Marc has expired"

But i have a version of 2005 of Marc so my codes and simulations will work properly.Or coulnt get your notice.

0 Kudos
Steven_L_Intel1
Employee
1,515 Views

It has been a long time since I have used 8.x, but the compiler provides a Start menu item for a command prompt build environment. Look for it under "Intel Software Development Tools". More information can be found in the on-disk documentation under Building Applications > Using the Command Line (or something like that.)

The article says that 8.0 is the supported version. That does not mean that it is the only version that will work. However, Intel Fortran 8.x is many years unsupported by us, so there is a limit to what help we can provide for it.

0 Kudos
WSinc
New Contributor I
1,515 Views

It'll disappear when the program runs to completion.

So, put a PAUSE or READ statement in there to keep the program active.

See if the console stays up then.

0 Kudos
freesun
Beginner
1,515 Views
Thank you very much for all helped me.
0 Kudos
Reply