<?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 What you normally do is in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Two-FORTRAN-program/m-p/1100111#M126568</link>
    <description>&lt;P&gt;What you normally do is separate the subroutine into its own source file then&amp;nbsp;either:&lt;/P&gt;

&lt;P&gt;a) Add the source file to both of your projects/makefile for&amp;nbsp;(A and B).&lt;/P&gt;

&lt;P&gt;b) Compile the shared subroutine(s) into a Library project, then add this library (and dependency on) to both of your projects. The recommended practice in Fortran is to place the subroutine into a CONTAINS section of a module, then USE the module in A and B. The path to the .mod file must be in your INCLUDE path, the path to the resultant .obj file (when not placed into a library) may also need to be specified.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2017 15:58:41 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2017-02-21T15:58:41Z</dc:date>
    <item>
      <title>Two FORTRAN program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Two-FORTRAN-program/m-p/1100110#M126567</link>
      <description>&lt;P&gt;I have 2 different FORTRAN programs (quite big programs). Let us call program 'A' and 'B'&lt;/P&gt;

&lt;P&gt;My program 'B' needs to use a subroutine of program A (exactly the same subroutine). Is it possible to call that subroutine of A from a subroutine of B?&lt;/P&gt;

&lt;P&gt;Any examples will be appreciated.&lt;/P&gt;

&lt;P&gt;Peter&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:04:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Two-FORTRAN-program/m-p/1100110#M126567</guid>
      <dc:creator>peter_m_</dc:creator>
      <dc:date>2017-02-21T15:04:40Z</dc:date>
    </item>
    <item>
      <title>What you normally do is</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Two-FORTRAN-program/m-p/1100111#M126568</link>
      <description>&lt;P&gt;What you normally do is separate the subroutine into its own source file then&amp;nbsp;either:&lt;/P&gt;

&lt;P&gt;a) Add the source file to both of your projects/makefile for&amp;nbsp;(A and B).&lt;/P&gt;

&lt;P&gt;b) Compile the shared subroutine(s) into a Library project, then add this library (and dependency on) to both of your projects. The recommended practice in Fortran is to place the subroutine into a CONTAINS section of a module, then USE the module in A and B. The path to the .mod file must be in your INCLUDE path, the path to the resultant .obj file (when not placed into a library) may also need to be specified.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:58:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Two-FORTRAN-program/m-p/1100111#M126568</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-02-21T15:58:41Z</dc:date>
    </item>
    <item>
      <title>If you are using Microsoft</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Two-FORTRAN-program/m-p/1100112#M126569</link>
      <description>&lt;P&gt;If you are using Microsoft Visual Studio, you can have a single Solution that has three Projects:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; one&amp;nbsp;Project to&amp;nbsp;build the subroutine(s) Library or Modules&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;one Project to build program A (dependent on the Library Project)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;and one Project to build program B (dependent on the Library Project).&lt;/P&gt;

&lt;P&gt;For debugging you then set the Startup Project to your choice of either A or B.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 16:03:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Two-FORTRAN-program/m-p/1100112#M126569</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-02-21T16:03:47Z</dc:date>
    </item>
  </channel>
</rss>

