<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic changing .f90 files to .for in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825722#M49893</link>
    <description>Thanks for your reply, what do you recommend in terms of creating fortran code? I was not aware of fixed and free format fortan files. I would like to use some software to help me produce valid .for code. I am and engineer new to programming. Thanks again.</description>
    <pubDate>Thu, 22 Sep 2011 09:38:09 GMT</pubDate>
    <dc:creator>mechprog</dc:creator>
    <dc:date>2011-09-22T09:38:09Z</dc:date>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825719#M49890</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;When I write a subroutine in Intel Fortran 10.1 (through Visual Studio 2008), it saves the file as a .f90 however I need to file type to be .for. However when I go to file - save as - and type filename.for, it seems to green out all the code. This seems to be causing me problems with my code.I have attached both files to this post.Is there a more efficient and reliable way to change my .f90 files to .for? I need the .for file types ofso I can use them withanother programming which reads .for subroutines.&lt;BR /&gt;&lt;BR /&gt;Thank-you very much.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Sep 2011 16:12:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825719#M49890</guid>
      <dc:creator>mechprog</dc:creator>
      <dc:date>2011-09-21T16:12:47Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825720#M49891</link>
      <description>I do not usually create source files using Visual Studio, but I do not see why you should have any problems.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I created a new, empty console project, to which I added (i) a new fixed format Fortran file and (ii) a new free format Fortran file. The editor gave each the proper suffix, and showed the syntax highlighting properly. The project was trivial to build, compile and run.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The two files that you attached are both free format, regardless of the suffixes used; they are identical in content. Neither file contains valid Fortran source in free format or fixed format.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Sep 2011 16:43:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825720#M49891</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-09-21T16:43:47Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825721#M49892</link>
      <description>&lt;P&gt;Hello mechprog,&lt;BR /&gt;&lt;BR /&gt;This is because .for files are fixed format Fortran files, and the first five rows should generally be left blank in fixed format Fortran. The following article has more information about fixed format Fortan -http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/2011Update/fortran/win/lref_for/source_files/pgbsfixd.htm &lt;BR /&gt;&lt;BR /&gt;Regards, Annalee&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 19:17:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825721#M49892</guid>
      <dc:creator>Anonymous66</dc:creator>
      <dc:date>2011-09-21T19:17:39Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825722#M49893</link>
      <description>Thanks for your reply, what do you recommend in terms of creating fortran code? I was not aware of fixed and free format fortan files. I would like to use some software to help me produce valid .for code. I am and engineer new to programming. Thanks again.</description>
      <pubDate>Thu, 22 Sep 2011 09:38:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825722#M49893</guid>
      <dc:creator>mechprog</dc:creator>
      <dc:date>2011-09-22T09:38:09Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825723#M49894</link>
      <description>&lt;P&gt;Why do you need "valid .for code"? .f90 files are just as valid.&lt;BR /&gt;&lt;BR /&gt;Fixed format means :&lt;BR /&gt;column 1 to 5 used for statement label&lt;BR /&gt;column 6 used for continuation indicator&lt;BR /&gt;column 7 to 72 used for program statements&lt;BR /&gt;&lt;BR /&gt;Free format means these restrictions do not apply. Statements are not limited to specific column positions in a source file.&lt;BR /&gt;&lt;BR /&gt;See the help (under Contents -&amp;gt; Language Reference -&amp;gt; Program Structure -&amp;gt; Source Forms&lt;BR /&gt;&lt;BR /&gt;As you are new to programming I would reccommend as a starting point&lt;BR /&gt;(a) use free format it is less error prone.&lt;BR /&gt;(b) ALWAYS have "implicit none" in your routines.&lt;BR /&gt;(c) learn the modern Fortran language style (rather than F77 style) for example you can use whole array operations instead of do-loops&lt;BR /&gt;(d) learn about modules, they are another great means of reducing errors.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Les&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 10:33:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825723#M49894</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2011-09-22T10:33:37Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825724#M49895</link>
      <description>Hi Les,&lt;DIV&gt;&lt;BR /&gt;Thanks for your feedback, as I am currently really stuck with these fortran coding problems.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am rather restricted as I am trying to use fortran subroutines with an engineering program called Abaqus. The following restrictions apply:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;1) Abaqus can only read .for or .obj user subroutine files&lt;/DIV&gt;&lt;DIV&gt;2) I need to use Intel Fortan 10.1 compiler&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am 100% sure that the problems are currently with my fortran code. Can anyone recommend a suitable method for writing .for code successfully?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Sep 2011 10:53:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825724#M49895</guid>
      <dc:creator>mechprog</dc:creator>
      <dc:date>2011-09-22T10:53:05Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825725#M49896</link>
      <description>You can useseveral approaches:&lt;BR /&gt;&lt;BR /&gt;1. As Fortran source files (either in fixed on in free form) are simply ordinary text files,&lt;BR /&gt; you can use your favourite text editor to create and edit them. Once you are done,&lt;BR /&gt; you can either import them into Visual Studio or use the command-line mode to &lt;BR /&gt; compile them. This will give you the opportunity to correct syntactical and other &lt;BR /&gt; mistakes.&lt;BR /&gt;&lt;BR /&gt; (I find the command-line mode to be very useful for small projects - one or two &lt;BR /&gt; source files, say, because Visual Studio, while wonderful for large ones,tends to &lt;BR /&gt; be a bit of a burden if you only have a single source file.)&lt;BR /&gt;&lt;BR /&gt;2. You can use free form source code instead. Perhaps you need to read up on this&lt;BR /&gt; type of files, but I find free form to be easier to work with myself. There are&lt;BR /&gt; plenty of online resources and books on paper to fill you in on these and other&lt;BR /&gt; aspect of Fortran 90 and later standards.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Thu, 22 Sep 2011 11:15:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825725#M49896</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2011-09-22T11:15:10Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825726#M49897</link>
      <description>Thanks for your input Arjen,&lt;BR /&gt;&lt;BR /&gt;Unfortunetly I need to only use .for files (as I understand so far, this is only fixed type). I am not sure why Abaqus can only read this type of code?&lt;BR /&gt;&lt;BR /&gt;I have checked to ensure there are no problems in the configuration between the Intel Fortran compiler and Abaqus and there is no issue. All the checks passed.&lt;BR /&gt;&lt;BR /&gt;I have attached an updated .for file to this post, is the syntax now corrected? Am I still missing something here?&lt;BR /&gt;&lt;BR /&gt;Thanks again for everyone help!</description>
      <pubDate>Thu, 22 Sep 2011 11:55:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825726#M49897</guid>
      <dc:creator>mechprog</dc:creator>
      <dc:date>2011-09-22T11:55:14Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825727#M49898</link>
      <description>Hi mechprog,&lt;BR /&gt;&lt;BR /&gt;continuation is done using a non-space, non-zero character in the sixth column and you have it&lt;BR /&gt;in the seventh (this counting is one aspect of fixed form that makes it cumbersome to use).&lt;BR /&gt;Compiling the source (outside the Abaqus environment) will quickly give you the information&lt;BR /&gt;on syntax errors and such.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Thu, 22 Sep 2011 12:00:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825727#M49898</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2011-09-22T12:00:42Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825728#M49899</link>
      <description>Lines 2 and 5 you have a "1" to indicate continuation. That "1" should be in column 6&lt;BR /&gt;&lt;BR /&gt;Les</description>
      <pubDate>Thu, 22 Sep 2011 12:03:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825728#M49899</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2011-09-22T12:03:58Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825729#M49900</link>
      <description>Problem now solved, thanks everyone! I can see the programming world builds on of those love-hate relationships...&lt;BR /&gt;&lt;BR /&gt;Thanks again. I am sure I will be posting on here again soon. Apparently I am "green-belt", thank you Sensai Intel :-)</description>
      <pubDate>Thu, 22 Sep 2011 12:53:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825729#M49900</guid>
      <dc:creator>mechprog</dc:creator>
      <dc:date>2011-09-22T12:53:44Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825730#M49901</link>
      <description>Don't worry, we all go through such processes ;)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Thu, 22 Sep 2011 12:56:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825730#M49901</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2011-09-22T12:56:40Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825731#M49902</link>
      <description>Also note, some editors will convert multi-space line indentation into tab and/or tab space indentation which you will not see the difference in your editor. The compiler is counting character posistions as to the first 5 characters on the line and the position of the 6'th and 7'th characters. Visual Studion integration (should) colorhighlight these positions when editing a xxx.for file. The color highlighting may help you to identify errors.&lt;BR /&gt;&lt;BR /&gt;Fixed form can at times hide syntax errors and coding errors. i.e. the compiler will not detect/report error due to the programming error looking like valid statements considering what is in/(not in) columns 1:6.&lt;BR /&gt;&lt;BR /&gt;If you prefer to use your favorite editor, I would suggest you write a GREP or other text file filtering program to find lines with TAB's on them and which you then replace the TAB with the appropriate number of spaces.&lt;BR /&gt;&lt;BR /&gt;Then filter to find lines with non-space in column 6. Visually assert that these are proper continuation lines. (and have either a numeric or * character)&lt;BR /&gt;&lt;BR /&gt;Then filter to find lines to find lines with non-space/non-numeric characters in columns 1:5 (these are in error)&lt;BR /&gt;&lt;BR /&gt;Then filter to find lines without spaces as the first5 characters. These should be all numeric. Inspect these lines to assert that they are valid continuation lines.&lt;BR /&gt;&lt;BR /&gt;*** Note&lt;BR /&gt;&lt;BR /&gt;I do not use ABACUS so I do not know what it is looking for in your .FOR files. If it is looking for data/common declarations then you might get by with compiling as .f90, copy/rename appropriate file(s) to .FOR, then process file with ABACUS. If ABACUS is generating the .FOR files then these should be proper F77 .FOR files suitable for use by IVF.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
      <pubDate>Thu, 22 Sep 2011 13:18:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825731#M49902</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2011-09-22T13:18:25Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825733#M49904</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;Regarding Abaqus and fixed/free form. In the file abaqus_v6.env you can find the compiler directives used for compiling Fortran source files to use with Abaqus. The line lookes like this:&lt;BR /&gt;&lt;BR /&gt;compile_fortran=['ifort', '/c','/DABQ_WIN86_64', '/recursive', '/Qauto-scalar', '/QxW', '/nologo', '/Od', '/include:%I']&lt;BR /&gt;&lt;BR /&gt;If you add the compiler directive /free to this line, you can use free form source code with Abaqus, e.g. &lt;BR /&gt;&lt;BR /&gt;compile_fortran=['ifort', '/c','/DABQ_WIN86_64', '/recursive', '/Qauto-scalar','/free', '/QxW', '/nologo', '/Od', '/include:%I']&lt;BR /&gt;&lt;BR /&gt;abaqus_v6.env is found in C:\\SIMULIA\\Abaqus\\6.10-2\\site&lt;BR /&gt;&lt;BR /&gt;I never use the command line for compiling, so I don't know if any of the other directives could be changed to improve performance.&lt;BR /&gt;&lt;BR /&gt;Unfortunately I never found a way to use modules with myFortran source code inAbaqus. Maybe some changes in the compiler directives can make this possible... Does anyone have any experience with this?&lt;BR /&gt;&lt;BR /&gt;j_clausen&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2011 08:01:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825733#M49904</guid>
      <dc:creator>j_clausen</dc:creator>
      <dc:date>2011-10-06T08:01:15Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825734#M49905</link>
      <description>Thanks j_clausen&lt;BR /&gt;&lt;BR /&gt;This is such a useful post for fortran-abaqus users. Thanks for taking the time to post this. I am assuming you need to select either fixed or free format and stick with that? &lt;BR /&gt;&lt;BR /&gt;With regards to the use of modules, do you mean developing functions or subroutines within the primary subroutine? I am not sure about that? I am having enough of a challenging dealing with one subroutine alone :-) I look also forward to input from others on this.</description>
      <pubDate>Thu, 06 Oct 2011 16:52:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825734#M49905</guid>
      <dc:creator>mechprog</dc:creator>
      <dc:date>2011-10-06T16:52:46Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825735#M49906</link>
      <description>What I was thinking about regarding usingmodules with my Abaqus-Fortran sources: As it is now, all the subroutines I use with Abaqus are gathered in a single file which is not a module (i.e. the first line is not "module module_name"). This means that the Fortran compiler does not do interface checking, which has caused me quite some trouble over the years. I have now begun to add explicit interfaces, but that is hell to maintain, as I call a lot of subroutines from within other subroutines.&lt;BR /&gt;&lt;BR /&gt;So a question I have is if anyone outthere have managed to use modules from Abaqus?&lt;BR /&gt;&lt;BR /&gt;Another thing: Do any of the Fortran Experts out there have any general comments on the default compiler directives used in Abaqus (shown in my previous post). Do they look good for the task, or are any of them odd?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt; j_clausen</description>
      <pubDate>Fri, 07 Oct 2011 07:48:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825735#M49906</guid>
      <dc:creator>j_clausen</dc:creator>
      <dc:date>2011-10-07T07:48:15Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825736#M49907</link>
      <description>&lt;P&gt;I am no expert on Abaqus, but a workaround (if I understand the interfacing correctly) would be:&lt;/P&gt;&lt;P&gt;module your_modules&lt;/P&gt;&lt;P&gt; ... all the code you need in one or more modules&lt;/P&gt;&lt;P&gt;end module your_modules&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;subroutineentry_from_abaqus( ...)&lt;/P&gt;&lt;P&gt; use your_modules&lt;/P&gt;&lt;P&gt; ... thin layer tocall the module procedures&lt;/P&gt;&lt;P&gt;end subroutine entry_from_abaqus&lt;/P&gt;&lt;P&gt;(Adjust for fixed form or use the compile option to treat .for files as free form)&lt;BR /&gt;&lt;BR /&gt;The basic idea is to let Abaqus call a subroutine that lives outside any module which then&lt;BR /&gt;calls the routines that do live in modules. That way you get most of the benefits of modules.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2011 08:37:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825736#M49907</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2011-10-07T08:37:34Z</dc:date>
    </item>
    <item>
      <title>changing .f90 files to .for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825732#M49903</link>
      <description>Ihave found the NOTEPAD++ editor is good for reviewing Fortran .FOR files. It does the syntax nicely and would show you your errors. It is free.&lt;BR /&gt;&lt;BR /&gt;JMN</description>
      <pubDate>Fri, 23 Sep 2011 13:50:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/changing-f90-files-to-for/m-p/825732#M49903</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2011-09-23T13:50:56Z</dc:date>
    </item>
  </channel>
</rss>

