<?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: Explicit interfaces with generated .mod files ? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800333#M37407</link>
    <description>&lt;P&gt;If a called subroutine is a contained module procedure, is an explicit interface automatically defined by the USE statement in the calling routine? If not, can one stick the interface in the module? i.e., &lt;/P&gt;
&lt;P&gt;subroutine Caller&lt;/P&gt;
&lt;P&gt;use PointerPassers_&lt;/P&gt;
&lt;P&gt;call PointerPasser_1 (pntr)&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;end&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;module PointerPassers_&lt;/P&gt;
&lt;P&gt;interface subroutine PointerPassers_1 (pntr)&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;end interface&lt;/P&gt;
&lt;P&gt;contains&lt;/P&gt;
&lt;P&gt;subroutine PointerPasser_1&lt;/P&gt;
&lt;P&gt; ...&lt;/P&gt;
&lt;P&gt;end module PointerPassers_&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2006 02:05:26 GMT</pubDate>
    <dc:creator>dbruceg</dc:creator>
    <dc:date>2006-08-30T02:05:26Z</dc:date>
    <item>
      <title>Explicit interfaces with generated .mod files ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800331#M37405</link>
      <description>&lt;P&gt;Steve:&lt;/P&gt;
&lt;P&gt;You mentioned a while back that the generated .mod files are to be used for error checking only, or something like that. It appears that they should &lt;EM&gt;not&lt;/EM&gt; be used for &lt;EM&gt;required&lt;/EM&gt; interfaces, such as between routines that pass pointers &lt;EM&gt;as&lt;/EM&gt; pointers. Strangely, though, the generated .mod files seem to work for that purpose until some mysterious phenomenon apparently related to the DLL complexity occurs, whereupon some (but not all) of the calls begin to fail. Am I reading this right? When an interface is required, one cannot trust the generated .mod files?&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2006 21:42:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800331#M37405</guid>
      <dc:creator>dbruceg</dc:creator>
      <dc:date>2006-08-29T21:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Explicit interfaces with generated .mod files ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800332#M37406</link>
      <description>There is a bug, which I have reported to development, that in some cases where an explicit interface would be required, a generated interface "satisfies" that requirement when the correct behavior should be that an error is given saying that an interface is required. The compiler should never use a generated interface for anything more than error checking.&lt;BR /&gt;&lt;BR /&gt;The generated .mod file can be "trusted" in that it will, for now, make the program work (when it shouldn't). At some point in the future, the compiler will give a proper error instead.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Aug 2006 22:08:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800332#M37406</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-08-29T22:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Explicit interfaces with generated .mod files ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800333#M37407</link>
      <description>&lt;P&gt;If a called subroutine is a contained module procedure, is an explicit interface automatically defined by the USE statement in the calling routine? If not, can one stick the interface in the module? i.e., &lt;/P&gt;
&lt;P&gt;subroutine Caller&lt;/P&gt;
&lt;P&gt;use PointerPassers_&lt;/P&gt;
&lt;P&gt;call PointerPasser_1 (pntr)&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;end&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;module PointerPassers_&lt;/P&gt;
&lt;P&gt;interface subroutine PointerPassers_1 (pntr)&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;end interface&lt;/P&gt;
&lt;P&gt;contains&lt;/P&gt;
&lt;P&gt;subroutine PointerPasser_1&lt;/P&gt;
&lt;P&gt; ...&lt;/P&gt;
&lt;P&gt;end module PointerPassers_&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2006 02:05:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800333#M37407</guid>
      <dc:creator>dbruceg</dc:creator>
      <dc:date>2006-08-30T02:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Explicit interfaces with generated .mod files ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800334#M37408</link>
      <description>A contained procedure is its own explicit interface and adding a separate interface block would be incorrect. A simple USE of the module is sufficient.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Aug 2006 03:46:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Explicit-interfaces-with-generated-mod-files/m-p/800334#M37408</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-08-30T03:46:10Z</dc:date>
    </item>
  </channel>
</rss>

