<?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 Re: Include files compatible for Fortran 77 and 90 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291252#M156423</link>
    <description>&lt;P&gt;The following code is accepted whether you name the file containing it with suffix&amp;nbsp;&lt;STRONG&gt;.f&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;.f90&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;      program tst
      implicit none
      integer :: ixnum, ixlow, ixhigh, maxass
      real, dimension(2,2,2) :: AsyRNG
!2345678901234567890123456789012345678901234567890123456789012345678901234567890
!        1         2         3         4         5         6         7
      ASYRNG (IXNUM,IXLOW,IXHIGH) = IXNUM.EQ.MAXASS.OR.                 &amp;amp;
     &amp;amp;   (IXLOW.LE.IXNUM.AND.IXHIGH.GE.IXNUM)
      end program&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the Fortran 90+ continuation character, '&amp;amp;', is placed beyond column 72 on line 7.&amp;nbsp; Look up the rules for Fortran source in fixed and free form and infer why this code snippet works.&lt;/P&gt;
&lt;P&gt;Some of the include files used in MKL and other software packages exploit such features to allow *.INC files to be inserted in both fixed and free form source files.&lt;/P&gt;
&lt;P&gt;There are compiler switches as well as directives that you can place in your source files to control whether to regard a portion of or the entire source&amp;nbsp; file to be regarded as being in a particular form, ignoring the file suffix conventions. These switches and directives are compiler-specific.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Jun 2021 05:46:53 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2021-06-19T05:46:53Z</dc:date>
    <item>
      <title>Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291244#M156421</link>
      <description>&lt;P&gt;Supposed you have some .f90 and .for and .f files that include similar snippets. One such snippet might be:&lt;/P&gt;
&lt;P&gt;ASYRNG (IXNUM,IXLOW,IXHIGH) = IXNUM.EQ.MAXASS.OR. &amp;amp;&lt;BR /&gt;(IXLOW.LE.IXNUM.AND.IXHIGH.GE.IXNUM)&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ASYRNG (IXNUM,IXLOW,IXHIGH) = IXNUM.EQ.MAXASS.OR.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; | (IXLOW.LE.IXNUM.AND.IXHIGH.GE.IXNUM)&lt;/P&gt;
&lt;P&gt;Note notice the &amp;amp; continuation character at the end of the line. Some versions use a + in column six. Fortran 90 does not like the +.&lt;/P&gt;
&lt;P&gt;So is there a continuation style that would work for a snippet included in both Fortran 90 and 77 files?&lt;/P&gt;
&lt;P&gt;If not, is there a way to tell in the code via an !ifdef if it is compiling F90 or not? It appears not.&lt;/P&gt;
&lt;P&gt;I have seen one place where people do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ASYRNG (IXNUM,IXLOW,IXHIGH) = IXNUM.EQ.MAXASS.OR. &amp;amp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp; (IXLOW.LE.IXNUM.AND.IXHIGH.GE.IXNUM)&lt;/P&gt;
&lt;P&gt;that is, they put an ampersand at the end of the line and in column 6 on the next line. Appears to work?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 04:31:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291244#M156421</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-19T04:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291245#M156422</link>
      <description>&lt;P&gt;On the same topic, comment styles. I gather using an exclamation mark in the first column is universally accepted?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 04:08:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291245#M156422</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-19T04:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291252#M156423</link>
      <description>&lt;P&gt;The following code is accepted whether you name the file containing it with suffix&amp;nbsp;&lt;STRONG&gt;.f&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;.f90&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;      program tst
      implicit none
      integer :: ixnum, ixlow, ixhigh, maxass
      real, dimension(2,2,2) :: AsyRNG
!2345678901234567890123456789012345678901234567890123456789012345678901234567890
!        1         2         3         4         5         6         7
      ASYRNG (IXNUM,IXLOW,IXHIGH) = IXNUM.EQ.MAXASS.OR.                 &amp;amp;
     &amp;amp;   (IXLOW.LE.IXNUM.AND.IXHIGH.GE.IXNUM)
      end program&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the Fortran 90+ continuation character, '&amp;amp;', is placed beyond column 72 on line 7.&amp;nbsp; Look up the rules for Fortran source in fixed and free form and infer why this code snippet works.&lt;/P&gt;
&lt;P&gt;Some of the include files used in MKL and other software packages exploit such features to allow *.INC files to be inserted in both fixed and free form source files.&lt;/P&gt;
&lt;P&gt;There are compiler switches as well as directives that you can place in your source files to control whether to regard a portion of or the entire source&amp;nbsp; file to be regarded as being in a particular form, ignoring the file suffix conventions. These switches and directives are compiler-specific.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 05:46:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291252#M156423</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-06-19T05:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291253#M156424</link>
      <description>&lt;P&gt;Universally accepted? For a sufficiently narrow universe, perhaps.&lt;/P&gt;
&lt;P&gt;The '&amp;amp;' and '!' characters were not included in the Fortran character set in earlier versions of Fortran. See, for instance, section 3.1 of the &lt;A href="https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub69-1.pdf" target="_self"&gt;Fortran IV Standard&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 05:45:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291253#M156424</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-06-19T05:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291275#M156426</link>
      <description>&lt;P&gt;But at a tangent, the code snippets shown if used a lot might be better as a function that can be called where needed. Much better than a clunky solution of lots of include files that insert repeat code. There are a whole list of reasons, code length, compile time, build cascades, maintenance, ...&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 09:20:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291275#M156426</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2021-06-19T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291315#M156429</link>
      <description>&lt;LI-CODE lang="none"&gt;@Ben136KBC wrote:
.. So is there a continuation style that would work for a snippet included in both Fortran 90 and 77 files?

If not, is there a way to tell in the code via an !ifdef if it is compiling F90 or not? It appears not...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/168916"&gt;@Ben136KBC&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This is more an FYI than anything else: take a look at &lt;STRONG&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/a-to-z-reference/e-to-f/freeform-and-nofreeform.html" target="_self"&gt;FREEFORM&lt;/A&gt; &lt;/STRONG&gt;compiler directive.&lt;/P&gt;
&lt;P&gt;If one is forced to INCLUDE files (only under very particular conditions that get rarer with time one can hope), then one may preferably have them in free-form source (what you call F90) format for convenience.&amp;nbsp; And such INCLUDE segments can be encoded in !DIR$ FREEFORM .. !DIR$ NOFREEFORM directives in the fixed form (what you call 77) source files:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;C fixed-form source file: .for or .f
C234567
      ..
!DIR$ FREEFORM
include 'asyrng.i90
!DIR$ NOFREEFORM
      ..     &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.&amp;gt; current Fortran standard - which is Fortran 2018 i.e., way beyond Fortran 90 - still supports both free-form and fixed-form source formats.&amp;nbsp; Thus it's not really a 90 vs 77 matter.&amp;nbsp; And it will be better if you can update your terminology can use free-form source vs fixed-source terms.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 14:05:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291315#M156429</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2021-06-19T14:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291316#M156430</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/program-elements-and-source-forms/source-forms/source-code-useable-for-all-source-forms.html#source-code-useable-for-all-source-forms" target="_blank"&gt;Source Code Useable for All Source Forms (intel.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="table table-collapsed"&gt;
&lt;TBODY class="tbody"&gt;
&lt;TR class="row"&gt;
&lt;TD class="entry"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Blanks&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD class="entry relcol"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Treat as significant (see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="xref" title="" href="https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/program-elements-and-source-forms/source-forms/free-source-form.html#free-source-form" target="_self" data-scope="local" data-format="dita" data-type=""&gt;Free Source Form&lt;/A&gt;).&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="row"&gt;
&lt;TD class="entry"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Statement labels&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD class="entry relcol"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Place in column positions 1 through 5&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;DIV&gt;(or before the first tab character)&lt;/DIV&gt;
.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="row"&gt;
&lt;TD class="entry"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Statements&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD class="entry relcol"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Start in column position 7&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;DIV&gt;(or after the first tab character)&lt;/DIV&gt;
.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="row"&gt;
&lt;TD class="entry"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Comment indicator&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD class="entry relcol"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Use only !. Place anywhere&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;DIV&gt;except&lt;/DIV&gt;
&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in column position 6&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;DIV&gt;(or immediately after the first tab character)&lt;/DIV&gt;
.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="row"&gt;
&lt;TD class="entry"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Continuation indicator&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD class="entry relcol"&gt;
&lt;DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV&gt;Use only &amp;amp;. Place in column position 73 of the initial line and each continuation line, and in column 6 of each continuation line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;DIV&gt;(no tab character can precede the ampersand in column 6)&lt;/DIV&gt;
.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sat, 19 Jun 2021 14:05:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291316#M156430</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2021-06-19T14:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291713#M156441</link>
      <description>&lt;P&gt;Sadly, .for files with Intel Fortran do not seem to follow the continuation rule, observe:&lt;/P&gt;
&lt;P&gt;..\Petrofine\includes\METHOD_NOS.INC(14): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( &amp;lt;IDENTIFIER&amp;gt; &amp;lt;CHAR_CON_KIND_PARAM&amp;gt; &amp;lt;CHAR_NAM_KIND_PARAM&amp;gt; &amp;lt;CHARACTER_CONSTANT&amp;gt; &amp;lt;INTEGER_CONSTANT&amp;gt; ...&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp; pkpmvc,pkltmo,pklvit,pklcan,pklpps,pklppe,pkpci4, &amp;amp;&lt;/P&gt;
&lt;P&gt;--------------------------------------------------------------------------------^&lt;/P&gt;
&lt;P&gt;compilation aborted for ..\kbclibv2\FortranSource\bdmeth2.for (code 1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And her I carefully made sure there are no tabs, and an &amp;amp; in column 6 and 73.&amp;nbsp; The ^ points just part the ampersand in column 73.&lt;/P&gt;
&lt;P&gt;I can make the comments work in all the Fortran files by using ! in the first column. CHECK.&lt;/P&gt;
&lt;P&gt;I can make variable and common declaration continuations work by editing them to not have any continuations. CHECK&lt;/P&gt;
&lt;P&gt;But with data statements, I cannot find a way that works for .f90 and .for files, and you have to use continuations with no way that seems to work in all Fortran files.&amp;nbsp; EEEEEP!!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 13:24:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291713#M156441</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-21T13:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291714#M156442</link>
      <description>&lt;P&gt;I like the FREEFORM idea, except what if the includes are in many files? Then you want to put the FREEFORM in the included files, but will the NOFREEFORM at the end cause problems if included in a .f90 file?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 13:25:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291714#M156442</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-21T13:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291735#M156443</link>
      <description>&lt;P&gt;The funny thing is that the ampersand in those two places do work. Sometimes.&amp;nbsp; But not if in an included .INC file maybe?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:30:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291735#M156443</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-21T14:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291736#M156444</link>
      <description>&lt;P&gt;Please attach a file which you say is not accepted. Attach it, do not paste into a reply.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:31:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291736#M156444</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2021-06-21T14:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291742#M156446</link>
      <description>&lt;P&gt;I shall prepare one, have a few meetings.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:47:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291742#M156446</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-21T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291743#M156447</link>
      <description>&lt;P&gt;Is there a way to rewrite this snippet (it is in an .INC file which is included in various other files) to not have any continuation characters ?&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;      DOUBLE PRECISION LV18(18)
      DATA LV18 / 0.0D0,  1.0D0, 2.0D0,  5.0D0, 10.0D0, 15.0D0, 20.0D0, 
     +           30.0D0, 40.0D0, 50.0D0, 60.D0, 70.0D0, 80.0D0, 90.0D0,
     +           95.0D0, 98.0D0, 99.0D0, 100.0D0 /
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:50:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291743#M156447</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-21T14:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291789#M156449</link>
      <description>&lt;LI-CODE lang="none"&gt;D:\Projects&amp;gt;type t.inc
      DOUBLE PRECISION LV18(18)
      DATA LV18 / 0.0D0,  1.0D0, 2.0D0,  5.0D0, 10.0D0, 15.0D0, 20.0D0, &amp;amp;
     &amp;amp;           30.0D0, 40.0D0, 50.0D0, 60.D0, 70.0D0, 80.0D0, 90.0D0, &amp;amp;
     &amp;amp;           95.0D0, 98.0D0, 99.0D0, 100.0D0 /
D:\Projects&amp;gt;type t.f90
include 't.inc'
print *, lv18(18)
end
D:\Projects&amp;gt;type t.for
      include 't.inc'
      print *, lv18(18)
      end
D:\Projects&amp;gt;ifort -c t.f90
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.2.0 Build 20210228_000000
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.


D:\Projects&amp;gt;ifort -c t.for
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.2.0 Build 20210228_000000
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:37:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291789#M156449</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2021-06-21T18:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291808#M156450</link>
      <description>&lt;P&gt;Lionel, upon CAREFUL scrutiny, you are right.&amp;nbsp; But it matters precisely whether you have spaces and how many or tabs (arg) and what continuation character you use.&amp;nbsp; You have to have it exactly right then it works.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 20:17:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291808#M156450</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-21T20:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291810#M156451</link>
      <description>&lt;P&gt;Don't use tabs. You do need to have the left hand continuation &amp;amp; characters in column 6. The right-hand &amp;amp; can be anywhere between 73 and 132, but 73 makes the most sense.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 20:21:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1291810#M156451</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2021-06-21T20:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1293386#M156518</link>
      <description>&lt;P&gt;Yes, any single tab anywhere and the ampersand approach doesn't work. But now that I know that, I can safely and reliably fix all my include files to work in .FOR and .F90 files. THANK YOU Lionel! Black belt well deserved.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 19:21:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1293386#M156518</guid>
      <dc:creator>Ben136KBC</dc:creator>
      <dc:date>2021-06-25T19:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Include files compatible for Fortran 77 and 90</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1293557#M156529</link>
      <description>Tabs are not allowed in standard conforming Fortran. If you set the standards checking option /stand they give compile errors.</description>
      <pubDate>Sat, 26 Jun 2021 20:10:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-files-compatible-for-Fortran-77-and-90/m-p/1293557#M156529</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2021-06-26T20:10:36Z</dc:date>
    </item>
  </channel>
</rss>

