<?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 If your 500 KLOC (kilo lines in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153337#M140796</link>
    <description>&lt;P&gt;If your 500 KLOC (kilo lines of code) are being happily digested by the compiler, I'd leave the code alone. Making it look nice in one editor is just not a good enough reason to incur the risk of replacing tabs by an incorrect number of spaces and have some&amp;nbsp;source lines stretched beyond column 72. Converters are useful, but they invariably produce results that need manual touch up.&lt;/P&gt;&lt;P&gt;If you are going to maintain the code, I suggest that you split it up into one subprogram per file. Then, when you wish to update one or more of those subprograms, you can also convert just those files to cleaned up fixed form sources or newly formatted free form sources. Then, before you update any of those modified sources, build and run some reference cases to check that the beautification has not affected the program output results.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2019 14:15:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2019-08-30T14:15:00Z</dc:date>
    <item>
      <title>Fixed-format Fortran tab question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153331#M140790</link>
      <description>&lt;P&gt;I have a legacy Fortran program, where each line starts in column 7 except for statement numbers (in column 1) and continuation marks (in column 6).&amp;nbsp; I have tried to get the editor in Visual Studio 2010 to behave this way, but cannot find any combination of settings where the first tab goes to 7 and others add 4 from that point.&lt;/P&gt;&lt;P&gt;Just now the code is a mess, with some lines starting in 4 via a tab, but others starting at 8 because of a long statement number.&amp;nbsp; Those lines do not line up nicely as before.&lt;/P&gt;&lt;P&gt;Does anyone know how to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 17:48:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153331#M140790</guid>
      <dc:creator>Don_D_</dc:creator>
      <dc:date>2019-08-29T17:48:24Z</dc:date>
    </item>
    <item>
      <title>Tabs in source are subject to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153332#M140791</link>
      <description>&lt;P&gt;Tabs in source are subject to different interpretation (or may be regarded as causes of&amp;nbsp;syntax errors simply by being present). How a particular program text editor&amp;nbsp;displays code containing tabs -- that is not really useful. See the advice regarding tabs at&amp;nbsp;http://fortranwiki.org/fortran/show/Modernizing+Old+Fortran , under the heading "Tab Characters in Source Code".&amp;nbsp;&lt;/P&gt;&lt;P&gt;How big is the source file in question?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Those lines do not line up nicely as before.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Sorry, "nicely" is very subjective.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 07:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153332#M140791</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-08-30T07:01:00Z</dc:date>
    </item>
    <item>
      <title>The program is about half a</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153333#M140792</link>
      <description>&lt;P&gt;The program is about half a million lines of code.&lt;/P&gt;&lt;P&gt;By "nicely" I mean that adjacent lines of code all start at the same column.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 11:39:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153333#M140792</guid>
      <dc:creator>Don_D_</dc:creator>
      <dc:date>2019-08-30T11:39:36Z</dc:date>
    </item>
    <item>
      <title>Yes, that is exactly the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153334#M140793</link>
      <description>&lt;P&gt;Yes, that is exactly the reason I myself dislike tab characters ;). You should probably be able to expand them into the correct number of spaces via your text editor or some other tool or, failing that, write a small program (in, say, Fortran), to convert those tabs into a number of spaces that will put the code into the right position.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 11:46:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153334#M140793</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2019-08-30T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Make sure to keep backups of</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153335#M140794</link>
      <description>&lt;P&gt;Make sure to keep backups of those half-million LOC.&lt;/P&gt;&lt;P&gt;Please try Urban's &lt;A href="http://fortranwiki.org/fortran/show/notab" target="_blank"&gt;http://fortranwiki.org/fortran/show/notab&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 11:57:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153335#M140794</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-08-30T11:57:57Z</dc:date>
    </item>
    <item>
      <title>It looks like the world has</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153336#M140795</link>
      <description>&lt;P&gt;It looks like the world has moved on from the days of punched cards, and I'm thinking of converting to free-form Fortran.&amp;nbsp; It could wind up being a bag of worms, however, which is why I haven't done so yet.&lt;/P&gt;&lt;P&gt;I can change the tabs into spaces with the VS editor -- but then the compiler doesn't like all those characters in column 6.&lt;/P&gt;&lt;P&gt;Long ago I found a way to make the VS editor put the first character in column 7 and tabs at four characters thereafter.&amp;nbsp; But after migrating to a new PC, I lost those settings and can't find them again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have experience with a free-form converter program?&amp;nbsp; There are some out there, but I dread the worms.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 12:33:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153336#M140795</guid>
      <dc:creator>Don_D_</dc:creator>
      <dc:date>2019-08-30T12:33:45Z</dc:date>
    </item>
    <item>
      <title>If your 500 KLOC (kilo lines</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153337#M140796</link>
      <description>&lt;P&gt;If your 500 KLOC (kilo lines of code) are being happily digested by the compiler, I'd leave the code alone. Making it look nice in one editor is just not a good enough reason to incur the risk of replacing tabs by an incorrect number of spaces and have some&amp;nbsp;source lines stretched beyond column 72. Converters are useful, but they invariably produce results that need manual touch up.&lt;/P&gt;&lt;P&gt;If you are going to maintain the code, I suggest that you split it up into one subprogram per file. Then, when you wish to update one or more of those subprograms, you can also convert just those files to cleaned up fixed form sources or newly formatted free form sources. Then, before you update any of those modified sources, build and run some reference cases to check that the beautification has not affected the program output results.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:15:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153337#M140796</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-08-30T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Excellent advice.  I guess I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153338#M140797</link>
      <description>&lt;P&gt;Excellent advice.&amp;nbsp; I guess I'll leave the code alone, except for cosmetic fixes here and there.&amp;nbsp; Nice to have a second opinion!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:26:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153338#M140797</guid>
      <dc:creator>Don_D_</dc:creator>
      <dc:date>2019-08-30T14:26:42Z</dc:date>
    </item>
    <item>
      <title>You can also try to open it</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153339#M140798</link>
      <description>&lt;P&gt;You can also try to open it with an editor that respect forttran tabulation (Notepad++, old Visual Studio editor) and use it to convert tabs to spaces with the appropriate saving option before saving it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153339#M140798</guid>
      <dc:creator>GVautier</dc:creator>
      <dc:date>2019-08-30T14:29:00Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt; except for cosmetic fixes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153340#M140799</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;except for cosmetic fixes here and there....&lt;/P&gt;&lt;P&gt;Be careful of the choice of editors. Many will unbeknownst substitute Tab for multiple spaces....&lt;BR /&gt;...OR... you inadvertently, out of habit, you&amp;nbsp;use the Tab character.&lt;/P&gt;&lt;P&gt;Nothing inherently wrong with Tab character.... as long as you know it represents only 1 character position.&lt;/P&gt;&lt;P&gt;I would refrain&amp;nbsp;from using auto-tabulating software until after conversion to Free Form.&lt;/P&gt;&lt;P&gt;Several times I have been burned where DATA statements get buggered up where the result does not generate compile time errors. When this happens to formerly working programs, finding the error is extremely difficult (code looks good, and problem occurs in code you did not change). Trying to fix a problem that visual walkthroughs check out is extremely time consuming.&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:35:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153340#M140799</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2019-08-30T15:35:10Z</dc:date>
    </item>
    <item>
      <title>Quote:jimdempseyatthecove</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153341#M140800</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;jimdempseyatthecove (Blackbelt) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing inherently wrong with Tab character.... as long as you know it represents only 1 character position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or not. I know of other compilers that treat a tab as "however many blanks are necessary to the next tab stop" for the purpose of line length.&amp;nbsp; This means that a tab-containing source line that is treated as 72 characters or less in Intel Fortran may get truncated by a different compiler. Tab is not part of the "Fortran character set" and I recommend against its use in new code.&lt;/P&gt;&lt;P&gt;That said, I agree with those who say to not try to "fix" existing code that contains tabs, but realize that they may cause headaches down the road.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:45:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153341#M140800</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2019-08-30T15:45:43Z</dc:date>
    </item>
    <item>
      <title>There is a lesson here.  When</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153342#M140801</link>
      <description>&lt;P&gt;There is a lesson here.&amp;nbsp; When I migrated to a new PC, I installed Fortran from the original disk.&amp;nbsp; That was version XE 2011.&amp;nbsp; The columns did not line up as previously, and the "C" in column 1 was not recognized by the editor.&amp;nbsp; So I started this thread.&lt;/P&gt;&lt;P&gt;Today I upgraded to the 2013 version -- and the problem disappeared!&amp;nbsp; I post this in the event that someone else makes the same careless mistake.&lt;/P&gt;&lt;P&gt;Now you know.&amp;nbsp; It's a good idea to keep your software up to date.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2019 19:56:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153342#M140801</guid>
      <dc:creator>Don_D_</dc:creator>
      <dc:date>2019-09-01T19:56:23Z</dc:date>
    </item>
    <item>
      <title>It is not fixed, the problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153343#M140802</link>
      <description>&lt;P&gt;It is not fixed, the problem&amp;nbsp;has just gone into hiding for a while&lt;/P&gt;&lt;P&gt;If your code is now 'correct' you can use the advanced options in the VS editor to "untabify" the files, i.e. replace tabs with spaces but retain the current spacing. Please note that you need to use the untabify command&amp;nbsp;more than once per&amp;nbsp;file. If you compile with /stand it will throw errors if there are tabs&amp;nbsp; so you can use that as a test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2019 22:35:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153343#M140802</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2019-09-01T22:35:18Z</dc:date>
    </item>
    <item>
      <title>A promising suggestion.  But</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153344#M140803</link>
      <description>&lt;P&gt;A promising suggestion.&amp;nbsp; But when I untabify a line where the text was tabbed over to column 7, as it should be, the tab gets replaced with four spaces, and the line starts in column 5.&amp;nbsp; Since the code already looks perfect and compiles and runs, I think I'll let well enough alone.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 11:58:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153344#M140803</guid>
      <dc:creator>Don_D_</dc:creator>
      <dc:date>2019-09-02T11:58:56Z</dc:date>
    </item>
    <item>
      <title>Quote:Don D. wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153345#M140804</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Don D. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A promising suggestion.&amp;nbsp; But when I untabify a line where the text was tabbed over to column 7, as it should be, the tab gets replaced with four spaces, and the line starts in column 5.&amp;nbsp; Since the code already looks perfect and compiles and runs, I think I'll let well enough alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you confirm your code is version controlled?&amp;nbsp;&amp;nbsp;https://en.wikipedia.org/wiki/List_of_version-control_software&lt;/P&gt;&lt;P&gt;If your application (call it Foo) is fully managed in a revision control system, you can create a new &lt;STRONG&gt;independent &lt;/STRONG&gt;management "branch", say FooPlus,&amp;nbsp;for code refactoring&amp;nbsp;that addresses the use of tabs and anything else of interest such as transformation to free-form source.&amp;nbsp; Once the branch is fully validated, it can transition to the main instance (meaning Foo itself) while the current 'production' one&amp;nbsp;becomes something else. say FooPrevious.&lt;/P&gt;&lt;P&gt;By the way, here're a couple of links if you decide to pursue free-form source for your code:&lt;/P&gt;&lt;P&gt;&lt;A href="http://degenerateconic.com/fixed-to-free-form-fortran-conversion/" target="_blank"&gt;http://degenerateconic.com/fixed-to-free-form-fortran-conversion/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ylikx/fortran-legacy-tools" target="_blank"&gt;https://github.com/ylikx/fortran-legacy-tools&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 13:15:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153345#M140804</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2019-09-02T13:15:35Z</dc:date>
    </item>
    <item>
      <title>This is impressive.  I'm not</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153346#M140805</link>
      <description>&lt;P&gt;This is impressive.&amp;nbsp; I'm not on a revision control system, although that is on the horizon.&amp;nbsp; Many thanks for the suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 13:23:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fixed-format-Fortran-tab-question/m-p/1153346#M140805</guid>
      <dc:creator>Don_D_</dc:creator>
      <dc:date>2019-09-02T13:23:28Z</dc:date>
    </item>
  </channel>
</rss>

