<?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 Variable array overwriting 1st  array. in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837354#M55880</link>
    <description>Needing an array expert for review. I have converted an old program from f77 to f90. Everything compiles and links but there is an array problem.&lt;BR /&gt;&lt;BR /&gt;PROBLEM WHEN X1 READS IT ALSO PUSHES DATA IN Y1&lt;BR /&gt;SAMES ISSUE WITH X2. IT WRITES TO NEXT AVAILABLE ENTRIES FOR Y1. UPON READ OF Y1, DATA ALSO OVERWRITES X1.&lt;BR /&gt;&lt;BR /&gt;I will attach the files so someone can maybe take a look, compile or link.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Nov 2002 06:21:03 GMT</pubDate>
    <dc:creator>pecan204</dc:creator>
    <dc:date>2002-11-07T06:21:03Z</dc:date>
    <item>
      <title>Variable array overwriting 1st  array.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837354#M55880</link>
      <description>Needing an array expert for review. I have converted an old program from f77 to f90. Everything compiles and links but there is an array problem.&lt;BR /&gt;&lt;BR /&gt;PROBLEM WHEN X1 READS IT ALSO PUSHES DATA IN Y1&lt;BR /&gt;SAMES ISSUE WITH X2. IT WRITES TO NEXT AVAILABLE ENTRIES FOR Y1. UPON READ OF Y1, DATA ALSO OVERWRITES X1.&lt;BR /&gt;&lt;BR /&gt;I will attach the files so someone can maybe take a look, compile or link.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Nov 2002 06:21:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837354#M55880</guid>
      <dc:creator>pecan204</dc:creator>
      <dc:date>2002-11-07T06:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable array overwriting 1st  array.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837355#M55881</link>
      <description>Note table.txt needs to be renamed table.inp.&lt;BR /&gt;&lt;BR /&gt;The upload would not accept a .inp file.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 07 Nov 2002 06:25:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837355#M55881</guid>
      <dc:creator>pecan204</dc:creator>
      <dc:date>2002-11-07T06:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variable array overwriting 1st  array.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837356#M55882</link>
      <description>In the main program is a major error:&lt;BR /&gt;  the statement &lt;B&gt;CALL READ1(0,0)&lt;/B&gt; is in error, because the constant 0 will be overwritten as 1 by the statement &lt;B&gt;IPAS1 = 1&lt;/B&gt;.&lt;BR /&gt;You should call READ1 in the main program as:&lt;BR /&gt;     IPAS1 = 0&lt;BR /&gt;     IERR  = 0&lt;BR /&gt;     CALL READ1(IPAS1, IERR)&lt;BR /&gt;&lt;BR /&gt;But when this is corrected, X1 is indeed overwritten by Y1 in subroutine READ3. This happens when READ3 is called for the second time in subroutine READ2.&lt;BR /&gt;It appears that the ITAB indices are not correct:  ITAB(2,2) = 548  and ITAB(4,2 ) = 549.&lt;BR /&gt;Via the call of READ3 in subroutine READ2:  TAB(548) represents X1 and TABS(549) represents Y1. So, Y1(1...) overwrites X1(2... ).&lt;BR /&gt;I assume the computation of the ITAB indices is incorrect somewhere.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Nov 2002 17:06:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837356#M55882</guid>
      <dc:creator>nijhuis</dc:creator>
      <dc:date>2002-11-07T17:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable array overwriting 1st  array.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837357#M55883</link>
      <description>Thanks nijhuis.&lt;BR /&gt;&lt;BR /&gt;I see the error in the itabs. It should be as below.&lt;BR /&gt;&lt;BR /&gt;        ITAB (NT, 2) = ITAB (NT, 1) + NX &lt;BR /&gt;        ITAB (NT, 3) = ITAB (NT, 2) + NY &lt;BR /&gt;        ITAB (NT, 4) = ITAB (NT, 3) + NZ &lt;BR /&gt;&lt;BR /&gt;Those other errors were a result of skinying down the code to post it.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Nov 2002 20:26:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837357#M55883</guid>
      <dc:creator>pecan204</dc:creator>
      <dc:date>2002-11-07T20:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable array overwriting 1st  array.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837358#M55884</link>
      <description>After correcting the ITAB statements the program crashes because a &lt;B&gt;string&lt;/B&gt; is read where a &lt;B&gt; number&lt;/B&gt; is expected.&lt;BR /&gt;This happens, because the &lt;B&gt;input file is not correct&lt;/B&gt;. The values NX, NY, NZ and NTAB as read in the file are not conform the amount of data following that line.&lt;BR /&gt;&lt;BR /&gt;Guus</description>
      <pubDate>Thu, 07 Nov 2002 21:58:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837358#M55884</guid>
      <dc:creator>nijhuis</dc:creator>
      <dc:date>2002-11-07T21:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variable array overwriting 1st  array.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837359#M55885</link>
      <description>Thanks. I caught that.</description>
      <pubDate>Thu, 14 Nov 2002 00:31:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Variable-array-overwriting-1st-array/m-p/837359#M55885</guid>
      <dc:creator>pecan204</dc:creator>
      <dc:date>2002-11-14T00:31:53Z</dc:date>
    </item>
  </channel>
</rss>

