<?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: Intel Fortran Compiler in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1568343#M170709</link>
    <description>&lt;P&gt;Thank you everyone for the overwhelming response. I identified the mistake as I was providing nrf as 3 where the number of variables that I defined at that time was 2.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 14:25:03 GMT</pubDate>
    <dc:creator>SreeKS</dc:creator>
    <dc:date>2024-02-01T14:25:03Z</dc:date>
    <item>
      <title>Intel Fortran Compiler</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1567022#M170646</link>
      <description>&lt;P&gt;I was trying to create a User defined model in PLAXIS2D which includes the 2 files to be read using Fortran code and the code is attached below. At that time the command end of line is shown the figure of which is attached below. Please help me so that I can run this to get the results.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 12:17:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1567022#M170646</guid>
      <dc:creator>SreeKS</dc:creator>
      <dc:date>2024-01-29T12:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Intel Fortran Compiler</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1567033#M170647</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;At that time the command end of line is shown&amp;nbsp;" is not a correct report of what happened. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What the error message from the RTL shows is end-of-file on file "RfRFs.dat". Note &lt;U&gt;end-of-file&lt;/U&gt; rather than &lt;U&gt;end-of-line&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you checked what that file and "RfIps.dat" contain? The program reads the integer n_rf from "RfIps.dat". It then attempts to read n_rf lines from "RfRFs.dat", with each line containing three real numbers. Do both files exist in the directory C:\Sree? Do the data files contain sufficient lines and correctly formatted data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do not know Plaxis2D at all, and how it interacts with the Fortran subroutine that you posted. We do not know if the program had previously performed I/O on the files. Try adding &lt;STRONG&gt;position='rewind'&lt;/STRONG&gt; and &lt;STRONG&gt;status = 'old'&lt;/STRONG&gt; to the OPEN statements, if there is some likelihood of the files having been connected earlier to the same program.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 13:25:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1567033#M170647</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2024-01-29T13:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Intel Fortran Compiler</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1567137#M170657</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41971"&gt;@mecej4&lt;/a&gt;&amp;nbsp;says, make sure both files exist in C:\Sree.&amp;nbsp; Open them in Wordpad or something to make sure they contain ASCII data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For debug, just drop in some easy print statements right before you read&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;RfRFs.dat&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print*, "reading n_rf lines where n_rf is ", n_rf&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;do i = 1 ,n_rf&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;read (593, *) (StVarTemp(i,j), j = 1,3)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print*, "line ', i, " is ",&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(StVarTemp(i,j), j = 1,3)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;end do &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;close (unit = 593)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 18:01:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1567137#M170657</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2024-01-29T18:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Intel Fortran Compiler</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1568343#M170709</link>
      <description>&lt;P&gt;Thank you everyone for the overwhelming response. I identified the mistake as I was providing nrf as 3 where the number of variables that I defined at that time was 2.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 14:25:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1568343#M170709</guid>
      <dc:creator>SreeKS</dc:creator>
      <dc:date>2024-02-01T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Intel Fortran Compiler</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1571184#M170855</link>
      <description>&lt;P&gt;I have again provided a little bit of modification to my code and got another error 151, which is allocatable array is already allocated. Can someone help me to figure out what can be the probable reason for this error? I have attached the image of the error and the code below.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 10:10:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1571184#M170855</guid>
      <dc:creator>SreeKS</dc:creator>
      <dc:date>2024-02-10T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Intel Fortran Compiler</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1571191#M170856</link>
      <description>&lt;P&gt;The error message contains the answer, and its wording is quite clear.&lt;/P&gt;&lt;P&gt;If your subroutine&amp;nbsp;MyMod_MC is called more than once with IDTask = 1, that error will occur during the second call.&lt;/P&gt;&lt;P&gt;When the subroutine is first called with IDTask = 1, the allocatable array&amp;nbsp;StVarTemp gets allocated when the ALLOCATE ... statement is executed. Because that variable has been declared with the SAVE attribute, if the subroutine is called a second time with IDTask = 1, that array is already allocated and the contents preserved, so it is an error to attempt to allocate it again.&lt;/P&gt;&lt;P&gt;The remedy depends on what the programmer wishes to do. We do not want to guess what the programmer intended to do. If the old contents are not to be preserved, remove the SAVE declaration for the array; however, only do this if you consider and accept the consequences of doing so.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 12:18:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1571191#M170856</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2024-02-10T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Intel Fortran Compiler</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1571210#M170857</link>
      <description>&lt;P&gt;You should read the manual for allocate.&lt;/P&gt;&lt;P&gt;You should using the manual method, provide an error code&lt;/P&gt;&lt;P&gt;You should check the return code and add code to your Fortran file to handle the current set up properly, it is a trivial exercise&lt;/P&gt;&lt;P&gt;An error is merely a sign that you do did not handle the paths in the Fortran code properly&lt;/P&gt;&lt;P&gt;If Fortran is new to you, then I suggest you read a good Fortran book one night - that is how most of the people on this forum learnt Fortran and if it is not new to you then leaving out an error check is poor programming.&amp;nbsp;&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41971"&gt;@mecej4&lt;/a&gt;&amp;nbsp;has kindly said, pick a path.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Computer programming is all about side effects, a side effects merely has to be handled.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to handle all potential paths if someone else is going to use the code, this why 10 lines of code has 100 lines of checking code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 15:59:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Fortran-Compiler/m-p/1571210#M170857</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2024-02-10T15:59:19Z</dc:date>
    </item>
  </channel>
</rss>

