<?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 Sorry to challenge your in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040348#M112892</link>
    <description>&lt;P&gt;Sorry to challenge your digestion or blood pressure&amp;nbsp;by mentioning ENTRY, Steve!&amp;nbsp; But this is an old dog who knows only old tricks trying to keep an old (45-years-old!) program running that just needs a couple of new options.&amp;nbsp; A lot easier to just point the calling routine into the specific code it needs than to teach the other callers how to identify themselves.&amp;nbsp; ;-)&lt;/P&gt;

&lt;P&gt;Thanks again so much for all you do with and for&amp;nbsp;the Forum.&amp;nbsp; You make it so pleasant and understandable&amp;nbsp;for us engineers who have to write code every now and then.&lt;/P&gt;

&lt;P&gt;God bless!&lt;/P&gt;

&lt;P&gt;Jack&lt;/P&gt;</description>
    <pubDate>Wed, 29 Oct 2014 19:06:30 GMT</pubDate>
    <dc:creator>jackosullivan1</dc:creator>
    <dc:date>2014-10-29T19:06:30Z</dc:date>
    <item>
      <title>Name of the calling routine</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040344#M112888</link>
      <description>&lt;P&gt;Is there a function available that will let me test for the name of the Fortran routine that has called my subroutine?&lt;/P&gt;

&lt;P&gt;Thanks and God bless!&lt;/P&gt;

&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 17:55:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040344#M112888</guid>
      <dc:creator>jackosullivan1</dc:creator>
      <dc:date>2014-10-29T17:55:16Z</dc:date>
    </item>
    <item>
      <title>No, there isn't. About the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040345#M112889</link>
      <description>&lt;P&gt;No, there isn't. About the best you can do is call TRACEBACKQQ which will generate a traceback - if the program was built with traceback enabled that will contain the names of routines up the call stack. By default this is written to the console (or a popup window), but can be redirected to a file. Probably more complication than you're looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:00:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040345#M112889</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-10-29T18:00:01Z</dc:date>
    </item>
    <item>
      <title>Thanks so much, Steve, for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040346#M112890</link>
      <description>&lt;P&gt;Thanks so much, Steve, for your as-usual prompt and expert response.&lt;/P&gt;

&lt;P&gt;You're very discerning about the complication.&amp;nbsp; On to additional ENTRY points!&lt;/P&gt;

&lt;P&gt;Thanks again, and of course ...&lt;/P&gt;

&lt;P&gt;God bless!&lt;/P&gt;

&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:38:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040346#M112890</guid>
      <dc:creator>jackosullivan1</dc:creator>
      <dc:date>2014-10-29T18:38:32Z</dc:date>
    </item>
    <item>
      <title>Please don't use ENTRY! Maybe</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040347#M112891</link>
      <description>&lt;P&gt;Please don't use ENTRY! Maybe pass a code as an additional argument to indicate the caller.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:55:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040347#M112891</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-10-29T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Sorry to challenge your</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040348#M112892</link>
      <description>&lt;P&gt;Sorry to challenge your digestion or blood pressure&amp;nbsp;by mentioning ENTRY, Steve!&amp;nbsp; But this is an old dog who knows only old tricks trying to keep an old (45-years-old!) program running that just needs a couple of new options.&amp;nbsp; A lot easier to just point the calling routine into the specific code it needs than to teach the other callers how to identify themselves.&amp;nbsp; ;-)&lt;/P&gt;

&lt;P&gt;Thanks again so much for all you do with and for&amp;nbsp;the Forum.&amp;nbsp; You make it so pleasant and understandable&amp;nbsp;for us engineers who have to write code every now and then.&lt;/P&gt;

&lt;P&gt;God bless!&lt;/P&gt;

&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 19:06:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040348#M112892</guid>
      <dc:creator>jackosullivan1</dc:creator>
      <dc:date>2014-10-29T19:06:30Z</dc:date>
    </item>
    <item>
      <title>40 years ago, there were</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040349#M112893</link>
      <description>&lt;P&gt;40 years ago, there were several incompatible versions of ENTRY (none standard).&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 20:12:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040349#M112893</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-10-29T20:12:57Z</dc:date>
    </item>
    <item>
      <title>Warning Will Robinson hack</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040350#M112894</link>
      <description>&lt;P&gt;Warning Will Robinson hack approaching...&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;module mod_FindCaller
&amp;nbsp; character(256) :: LastFile
&amp;nbsp; integer :: LastLine
&amp;nbsp;&amp;nbsp;&amp;nbsp; contains
&amp;nbsp;&amp;nbsp;&amp;nbsp; function FindCaller(f,l,x)
&amp;nbsp;&amp;nbsp;&amp;nbsp; real :: FindCaller, x&amp;nbsp;&amp;nbsp; ! same type, use generic function
&amp;nbsp;&amp;nbsp;&amp;nbsp; character*(*) :: f
&amp;nbsp;&amp;nbsp;&amp;nbsp; integer :: l
&amp;nbsp;&amp;nbsp;&amp;nbsp; LastFile = f
&amp;nbsp;&amp;nbsp;&amp;nbsp; LastLine = l
&amp;nbsp;&amp;nbsp;&amp;nbsp; FindCaller = x
&amp;nbsp;&amp;nbsp;&amp;nbsp; end function FindCaller
end module mod_FindCaller
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
subroutine FOO(A, B)
&amp;nbsp;&amp;nbsp;&amp;nbsp; use mod_FindCaller
&amp;nbsp;&amp;nbsp;&amp;nbsp; real :: A,B
&amp;nbsp;&amp;nbsp;&amp;nbsp; real :: C
&amp;nbsp;&amp;nbsp;&amp;nbsp; real :: X
&amp;nbsp;&amp;nbsp;&amp;nbsp; X = A + B
&amp;nbsp;&amp;nbsp;&amp;nbsp; goto 100
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTRY FEE(C)
&amp;nbsp;&amp;nbsp;&amp;nbsp; X = C
100 continue
&amp;nbsp;&amp;nbsp;&amp;nbsp; print *,X
&amp;nbsp;&amp;nbsp;&amp;nbsp; print *,LastFile,LastLine
end subroutine FOO

program Test
&amp;nbsp; use mod_FindCaller
&amp;nbsp; implicit none
! The #defines must not be in the module
! They may be in an FPP #include file
! But not in a Fortran INCLUDE file
#define FOO(a,b) foo(FindCaller(__FILE__, __LINE__, a), b)
#define FEE(a) fee(FindCaller(__FILE__, __LINE__, a))

&amp;nbsp; CALL FOO(1.0,2.0)
&amp;nbsp; CALL FEE(5.0)
end program Test&lt;/PRE&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:23:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Name-of-the-calling-routine/m-p/1040350#M112894</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2014-10-29T21:23:06Z</dc:date>
    </item>
  </channel>
</rss>

