<?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 Compiler Directive Conversion from Unix FORTRAN in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833626#M53726</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I am compiling fortran from a unix system on my Windows pc using CVF 6.6c.&lt;BR /&gt;The code makes extensive use of complier directives. Is there a conversion utility that will change the directives to CVF compatible format? I do not have access to a unix system to test the meaning of the less obvious cases.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Specific issues:&lt;/DIV&gt;
&lt;DIV&gt;What effect does the ! have in the following?&lt;BR /&gt;#if ! defined(sym1)&lt;BR /&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Is this:&lt;BR /&gt;#if !defined(sym1)&amp;amp;&amp;amp;!defined(sym2)&lt;BR /&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;equivalent to?:&lt;BR /&gt;cDEC$ IF (DEFINED(sym1) .and. DEFINED(sym2))&lt;BR /&gt;cDEC$ ENDIF&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;Is this:&lt;BR /&gt;#if defined(sym1) || defined(sym2)&lt;BR /&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;equivalent to?:&lt;BR /&gt;cDEC$ IF (DEFINED(sym1) .or. DEFINED(sym2))&lt;BR /&gt;cDEC$ ENDIF&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Is this:&lt;BR /&gt;#ifndef sym1&lt;BR /&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;equivalent to?:&lt;BR /&gt;cDEC$ IF (.not. DEFINED(sym1))&lt;BR /&gt;cDEC$ ENDIF&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for any help,&lt;BR /&gt;Randy Stonesifer&lt;BR /&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 25 May 2005 21:54:30 GMT</pubDate>
    <dc:creator>randystonesifer</dc:creator>
    <dc:date>2005-05-25T21:54:30Z</dc:date>
    <item>
      <title>Compiler Directive Conversion from Unix FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833626#M53726</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I am compiling fortran from a unix system on my Windows pc using CVF 6.6c.&lt;BR /&gt;The code makes extensive use of complier directives. Is there a conversion utility that will change the directives to CVF compatible format? I do not have access to a unix system to test the meaning of the less obvious cases.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Specific issues:&lt;/DIV&gt;
&lt;DIV&gt;What effect does the ! have in the following?&lt;BR /&gt;#if ! defined(sym1)&lt;BR /&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Is this:&lt;BR /&gt;#if !defined(sym1)&amp;amp;&amp;amp;!defined(sym2)&lt;BR /&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;equivalent to?:&lt;BR /&gt;cDEC$ IF (DEFINED(sym1) .and. DEFINED(sym2))&lt;BR /&gt;cDEC$ ENDIF&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;Is this:&lt;BR /&gt;#if defined(sym1) || defined(sym2)&lt;BR /&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;equivalent to?:&lt;BR /&gt;cDEC$ IF (DEFINED(sym1) .or. DEFINED(sym2))&lt;BR /&gt;cDEC$ ENDIF&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Is this:&lt;BR /&gt;#ifndef sym1&lt;BR /&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;equivalent to?:&lt;BR /&gt;cDEC$ IF (.not. DEFINED(sym1))&lt;BR /&gt;cDEC$ ENDIF&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for any help,&lt;BR /&gt;Randy Stonesifer&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 May 2005 21:54:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833626#M53726</guid>
      <dc:creator>randystonesifer</dc:creator>
      <dc:date>2005-05-25T21:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Directive Conversion from Unix FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833627#M53727</link>
      <description>I've never known anyone to want to convert cpp directives to DEC$ format.  Did you look up the /fpp and /preprocess-only options in your Visual Studio help?  We fought for months to get this CVF capability back into ifort 8.1.&lt;BR /&gt;If you want to test pre-processing on the command line, independent of CVF or ifort, use&lt;BR /&gt;gcc -traditional -x c -E file.F&lt;BR /&gt;Presumably, the /fpp option is named for the open source fpp pre-processor.  In corner cases, you might find that producing different results from CVF /fpp or the gcc pre-processing, but the syntax you have shown looks like typical usage, even on Windows.</description>
      <pubDate>Wed, 25 May 2005 22:51:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833627#M53727</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2005-05-25T22:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Directive Conversion from Unix FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833628#M53728</link>
      <description>I would suggest simply enabling the fpp option with /fpp or on the Preprocessor options dialog.</description>
      <pubDate>Wed, 25 May 2005 23:38:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833628#M53728</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-05-25T23:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Directive Conversion from Unix FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833629#M53729</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Tim &amp;amp; Steve,&lt;/DIV&gt;
&lt;DIV&gt;Thanks for pointing out the /fpp compiler option. &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;It definitely was easier than converting tocDEC$.:smileywink:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;What would I have needed to do if I was using ifort 8.1?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks again,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Randy&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 May 2005 01:26:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833629#M53729</guid>
      <dc:creator>randystonesifer</dc:creator>
      <dc:date>2005-05-26T01:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Directive Conversion from Unix FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833630#M53730</link>
      <description>No difference, except in how you get to the "property page" for the Preprocessor options.</description>
      <pubDate>Thu, 26 May 2005 01:40:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Directive-Conversion-from-Unix-FORTRAN/m-p/833630#M53730</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-05-26T01:40:05Z</dc:date>
    </item>
  </channel>
</rss>

