Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
5 Views

Create a file code.f fortran 77

I installed Intel® Parallel Studio XE 2016 for Windows.
I want to create a file code.f but can only create files or code.for code.f90
I followed instructions
To use the Intel® compiler:
Microsoft Visual Studio * 1.Launch.
2.Select File> New> Project.
3.In the New Project window, select a project type under the Intel (R) Visual Fortran Compiler.
4.Select a template and click OK.

Please help, thanks

 

 

0 Kudos
3 Replies
Highlighted
Black Belt
5 Views

.f files are recognized by

.f files are recognized by IVF as fixed format files.  You can use .for instead.

If you have free format code, then you need to use .f90.

Fixed format code begins the main code lines from column 7, and ends before column 72 (Comments and label numbers can be in columns 1-5).  Free format code can start anywhere on the line.

0 Kudos
Highlighted
Beginner
5 Views

Thanks David White,

Thanks David White,

I have a code.f, so, first I can open the file "code.f" and then " File\New\Fortran Project From Existing Code

or converter code.f to code.f90

Please help, thanks

0 Kudos
Highlighted
5 Views

You don't need to convert. As

You don't need to convert. As David says, Intel Fortran handles .f files just fine - as long as they are indeed fixed-form source (what you are calling Fortran 77).

Yes, the new project wizard will not suggest .f as a file type but you can change the file type if you want.

Retired 12/31/2016
0 Kudos