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

How to Run for codes on Intel Visual Fortran Comoser XE 2011

aliabd
Beginner
615 Views

Hi,

I am a new member to this Forum. I have a very basic Question. I was using CVF previously. Now, I have installed the Composer. I've learned how to migrate the project from CVF to IVF. However, I don't know how to run a single "for" or "f90" code in the Composer. Windows opens the code in Microsoft Visual Studio but there is no compiling option. On the other hand, if I create a new project and copy and paste the code in the Editor, it does not recognize it as a Fortran 77 code. I know it is a simple question but I will be grateful if you can help me with that.

Thanks,
Ali

0 Kudos
3 Replies
Steven_L_Intel1
Employee
615 Views
Create a new project as an "empty" project of the appropriate type - such as Console Application. If you have an existing source file, just add the source file to the project just as you did in CVF. If you want to copy and paste, add a new source file but make sure you select "Fixed form source". Then paste into that. Really, this part is the same as CVF.
0 Kudos
aliabd
Beginner
615 Views
Thanks Steve,

Your suggestion worked for me well. I created a new project and added the source code to it. But when I wanted to compile the code, it gave me some errors. So, I tried to do what you have advised in your article "Migrating from Compaq Visual Fortran". So, I modified the dsw and dsp files and extracted CVF items. And I could run the same code without any errors. So, I have two questions:

1- Why this is happening? I mean the only way the code is working like before is to modify the dsw and dsp files. But I cannot compile the source code directly without error.
2- In CVF I could just open a fixed format file and run the code without creating a new project. Can I do the same with Intel Visual Fortran?

Thanks again,
0 Kudos
Steven_L_Intel1
Employee
615 Views
Intel Visual Fortran does not have the ability to create a project for you from a source file the way CVF did. It's due to a difference in Visual Studio. So you'll need to create a new project and add your source file(s) to it.

I don't understand your issue about modifying the dsp and dsw - something one rarely does. What were the errors and what did you change?
0 Kudos
Reply