<?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 Solved it :-) in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050033#M114958</link>
    <description>&lt;P&gt;Solved it :-)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;The problem was with my tcsh. I went to this link &lt;A href="https://software.intel.com/en-us/articles/tips-for-debugging-run-time-failures-in-intel-fortran-applications"&gt;https://software.intel.com/en-us/articles/tips-for-debugging-run-time-failures-in-intel-fortran-applications&lt;/A&gt;and I added this to my shell - limit stacksize unlimited and voila my problem disappeared.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2015 13:26:30 GMT</pubDate>
    <dc:creator>Ashwin_D_</dc:creator>
    <dc:date>2015-06-23T13:26:30Z</dc:date>
    <item>
      <title>Compiling with -check bounds</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050027#M114952</link>
      <description>&lt;P&gt;I have looked at this thread - &lt;A href="https://software.intel.com/en-us/forums/topic/271337" target="_blank"&gt;https://software.intel.com/en-us/forums/topic/271337&lt;/A&gt; and I have recompiled my code with -check bounds. However this does not print as output anywhere that array boundaries have been exceeded.&lt;/P&gt;

&lt;P&gt;However if there is a subroutine that is having an array declared as&amp;nbsp; (*)&amp;nbsp; will that mean this will bypass all array bound checking ?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Ashwin.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:41:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050027#M114952</guid>
      <dc:creator>Ashwin_D_</dc:creator>
      <dc:date>2015-06-23T10:41:43Z</dc:date>
    </item>
    <item>
      <title>Yes, we've been told that</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050028#M114953</link>
      <description>&lt;P&gt;Yes, we've been told that only the Nag Fortran implements bounds checking for assumed size arrays.&lt;/P&gt;

&lt;P&gt;Surprisingly often, we see arrays declared as (*) or (1) when the actual intended size is present in the argument list.&amp;nbsp; "I don't want to know about errors."&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 11:20:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050028#M114953</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-23T11:20:48Z</dc:date>
    </item>
    <item>
      <title>Thank you for your response.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050029#M114954</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am having a difficult time debugging a segmentation fault and no core is dumped to disk. I did recompile with -g -traceback option and when I ran gdb I get hexadecimal addresses with no source code information.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Any other suggestions other than line by line print statements ?&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 11:29:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050029#M114954</guid>
      <dc:creator>Ashwin_D_</dc:creator>
      <dc:date>2015-06-23T11:29:40Z</dc:date>
    </item>
    <item>
      <title>Quote:ashwin wrote:However if</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050030#M114955</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;ashwin wrote:&lt;BR /&gt;However if there is a subroutine that is having an array declared as &amp;nbsp;(*) &amp;nbsp;will that mean this will bypass all array bound checking ?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;No, with most compilers bounds checking is skipped &lt;EM&gt;for just that variable&lt;/EM&gt;. Therefore, by successively replacing each '*' with an appropriate expression that is computable from zero or more of the dummy arguments, and fixing the reported array bound errors, you can often narrow down the location of the bug.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 12:32:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050030#M114955</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-06-23T12:32:11Z</dc:date>
    </item>
    <item>
      <title>I believe it is being thrown</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050031#M114956</link>
      <description>&lt;P&gt;I believe it is being thrown inside this subroutine. Because when I try to print any value inside this subroutine all I get is segmentation fault.&lt;/P&gt;

&lt;P&gt;Would this code not print out bounds checking for the th3 array ?&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;  subroutine calc_theta (th3,t3,p3,
     &amp;gt;                       nx,ny,nz,mdv)


    
      implicit none

c     Declaration of subroutine parameters
      integer   nx,ny,nz
      real      mdv
      real      th3(nx,ny,nz)
      real      t3 (nx,ny,nz)
      real      p3 (nx,ny,nz)
      

      real      rdcp,tzero,p0
      parameter (rdcp=0.286)
      parameter (tzero=273.15)
      parameter (p0=100000.)
      real      eps
      parameter (eps=0.01)
      
c     Auxiliary variables
      integer  i,j,k

c     Calculation

      do i=1,nx
         do j=1,ny
            do k=1,nz
            
               if ((abs(t3(i,j,k)-mdv).gt.eps).and.
     &amp;gt;             (abs(p3(i,j,k)-mdv).gt.eps)) then
               
                 th3(i,j,k)=(t3(i,j,k)+tzero)*( (p0/p3(i,j,k))**rdcp )

              else
                 th3(i,j,k)=mdv
                  

              endif
               
           enddo
        enddo
      enddo

      end&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 12:42:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050031#M114956</guid>
      <dc:creator>Ashwin_D_</dc:creator>
      <dc:date>2015-06-23T12:42:43Z</dc:date>
    </item>
    <item>
      <title>What happens if you rebuild</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050032#M114957</link>
      <description>&lt;P&gt;What happens if you rebuild with "-warn interface"? It is possible that you are not passing the arguments correctly. Only by seeing a complete test case can we really help you.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 13:04:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050032#M114957</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-06-23T13:04:00Z</dc:date>
    </item>
    <item>
      <title>Solved it :-)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050033#M114958</link>
      <description>&lt;P&gt;Solved it :-)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;The problem was with my tcsh. I went to this link &lt;A href="https://software.intel.com/en-us/articles/tips-for-debugging-run-time-failures-in-intel-fortran-applications"&gt;https://software.intel.com/en-us/articles/tips-for-debugging-run-time-failures-in-intel-fortran-applications&lt;/A&gt;and I added this to my shell - limit stacksize unlimited and voila my problem disappeared.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 13:26:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050033#M114958</guid>
      <dc:creator>Ashwin_D_</dc:creator>
      <dc:date>2015-06-23T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Ok. You might consider "-heap</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050034#M114959</link>
      <description>&lt;P&gt;Ok. You might consider "-heap-arrays" (a compiler option) as an alternative.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 13:35:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-with-check-bounds/m-p/1050034#M114959</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-06-23T13:35:07Z</dc:date>
    </item>
  </channel>
</rss>

