<?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: forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464190#M165484</link>
    <description>&lt;P&gt;Dear mecej4 and Markus, thanks a lot for your help. The compilation went successfully and the simulation is now running.&lt;/P&gt;
&lt;P&gt;I apologize for this very simple question, I will dig into your answers to learn more as I am a beginner in Fortran scripting.&lt;/P&gt;
&lt;P&gt;Cheers, Giorgio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 12:22:08 GMT</pubDate>
    <dc:creator>GiorgioT</dc:creator>
    <dc:date>2023-03-10T12:22:08Z</dc:date>
    <item>
      <title>forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1463695#M165475</link>
      <description>&lt;P&gt;Dear Intel community,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am running a simple simulation with KPP processor and after the 9th output .dat file (out of 150) the simulation terminates with the following error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write&lt;/P&gt;
&lt;P&gt;Compiler used: Intel Fortran Compiler 2022.2.1 .&lt;/P&gt;
&lt;P&gt;This might be the part of the Fortran code involved:&lt;/P&gt;
&lt;P&gt;OPEN( unit=10, file="dyno_"//ex_no(1)//ex_no(2)//ex_no(3)//".dat")&lt;/P&gt;
&lt;P&gt;...... ......&lt;/P&gt;
&lt;P&gt;INTEGER i&lt;/P&gt;
&lt;P&gt;WRITE(10,999) (TIME-TSTART)/3600.D0, &amp;amp;&lt;BR /&gt;(C(LOOKAT(i))/CFACTOR, i=1,NLOOKAT)&lt;/P&gt;
&lt;P&gt;999 FORMAT(E24.16,100(1X,E24.16))*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you can help with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 10:36:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1463695#M165475</guid>
      <dc:creator>GiorgioT</dc:creator>
      <dc:date>2023-03-09T10:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464113#M165478</link>
      <description>&lt;P&gt;I do not think that you are reporting the error correctly. The error message is about an internal write, with unit number -5. The WRITE statement that you display, on the other hand, is for an external write to unit number +10.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 08:30:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464113#M165478</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2023-03-10T08:30:53Z</dc:date>
    </item>
    <item>
      <title>Re:forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464155#M165479</link>
      <description>&lt;P&gt;Refer to &lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/compiler-reference/error-handling/run-time-errors/list-of-run-time-error-messages.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/compiler-reference/error-handling/run-time-errors/list-of-run-time-error-messages.html&lt;/A&gt; for more details about runtime errors.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please, build your application with -g and -traceback to get more information about where exactly crash happens.  I would recommend disabling optimizations using -O0 as well to make sure the issue is still reproducible with unoptimized code.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Mar 2023 10:25:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464155#M165479</guid>
      <dc:creator>Alina_S_Intel</dc:creator>
      <dc:date>2023-03-10T10:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464156#M165480</link>
      <description>&lt;P&gt;Dear mecej4,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you are right sorry. The following is the relevant part of the .f90 that I believe should be important and the key of the problem:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SUBROUTINE InitSaveData (j)&lt;/P&gt;
&lt;P&gt;USE dynho_Parameters&lt;BR /&gt;INTEGER :: j&lt;BR /&gt;CHARACTER :: ex_no(3)&lt;/P&gt;
&lt;P&gt;ex_no(1:2) = '000'&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;IF(j.lt.10) then&lt;BR /&gt;WRITE(ex_no(3),4) j&lt;BR /&gt;4 FORMAT(i1) &lt;BR /&gt;ELSEIF (j.ge.10.and.j.lt.100) then &lt;BR /&gt;WRITE(ex_no(2:3),5) j&lt;BR /&gt;5 FORMAT(i2) &lt;BR /&gt;ELSE&lt;BR /&gt;WRITE(ex_no(:),6) j&lt;BR /&gt;6 FORMAT(i3)&lt;BR /&gt;END IF&lt;/P&gt;
&lt;P&gt;OPEN( unit=10, file="dynho_"//ex_no(1)//ex_no(2)//ex_no(3)//".dat")&lt;BR /&gt;! open(10, file='dynho.dat')&lt;/P&gt;
&lt;P&gt;END SUBROUTINE InitSaveData&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something is wrong with WRITE(ex_no(2:3),5)&amp;nbsp; I guess!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your help!!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 10:28:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464156#M165480</guid>
      <dc:creator>GiorgioT</dc:creator>
      <dc:date>2023-03-10T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464163#M165481</link>
      <description>&lt;P&gt;Your declaration of the character variable has a mistake: ex_no is an array of three elements, each being a single character. You probably mean:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;character(len=3) :: ex_no&lt;/LI-CODE&gt;
&lt;P&gt;and you can achieve this more easily with: &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;write( ex_no, '(i3.3)' ) j&lt;/LI-CODE&gt;
&lt;P&gt;then the zeroes are added automatically :).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 11:04:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464163#M165481</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2023-03-10T11:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464184#M165482</link>
      <description>&lt;P&gt;Dear Markus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks a lot for your help. I modified the subroutine this way:&lt;/P&gt;
&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;SUBROUTINE InitSaveData (j)&lt;/P&gt;
&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;USE dynho_Parameters&lt;BR /&gt;INTEGER :: j&lt;BR /&gt;CHARACTER(len=3) :: ex_no&lt;/P&gt;
&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;WRITE(ex_no,'(i3.3)') j&lt;/P&gt;
&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;BR /&gt;OPEN( unit=10, file="dynho_"//ex_no(1)//ex_no(2)//ex_no(3)//".dat")&lt;/P&gt;
&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;END SUBROUTINE InitSaveData&lt;/P&gt;
&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I get a compilation error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;dynho_Util.f90(73): error #6410: This name has not been declared as an array or a function. [EX_NO]&lt;BR /&gt;OPEN( unit=10, file="dynho_"//ex_no(1)//ex_no(2)//ex_no(3)//".dat")&lt;BR /&gt;------------------------------------^&lt;BR /&gt;dynho_Util.f90(73): error #6054: A CHARACTER data type is required in this context. [EX_NO]&lt;BR /&gt;OPEN( unit=10, file="dynho_"//ex_no(1)//ex_no(2)//ex_no(3)//".dat")&lt;BR /&gt;------------------------------------^&lt;BR /&gt;dynho_Util.f90(73): error #6054: A CHARACTER data type is required in this context. [EX_NO]&lt;BR /&gt;OPEN( unit=10, file="dynho_"//ex_no(1)//ex_no(2)//ex_no(3)//".dat")&lt;BR /&gt;----------------------------------------------^&lt;BR /&gt;dynho_Util.f90(73): error #6054: A CHARACTER data type is required in this context. [EX_NO]&lt;BR /&gt;OPEN( unit=10, file="dynho_"//ex_no(1)//ex_no(2)//ex_no(3)//".dat")&lt;BR /&gt;-------&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess because ex_no(1), ex_no(2), ex_no(3) are not arrays anymore, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 12:08:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464184#M165482</guid>
      <dc:creator>GiorgioT</dc:creator>
      <dc:date>2023-03-10T12:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464186#M165483</link>
      <description>&lt;P&gt;To match the change in the declaration of the variable ex_no (from an array of single characters to a scalar character variable of length 3), replace the expression &lt;STRONG&gt;ex_no(1)//ex_no(2)//ex_no(3)&lt;/STRONG&gt; by &lt;STRONG&gt;ex_no&lt;/STRONG&gt; .&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 12:15:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464186#M165483</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2023-03-10T12:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464190#M165484</link>
      <description>&lt;P&gt;Dear mecej4 and Markus, thanks a lot for your help. The compilation went successfully and the simulation is now running.&lt;/P&gt;
&lt;P&gt;I apologize for this very simple question, I will dig into your answers to learn more as I am a beginner in Fortran scripting.&lt;/P&gt;
&lt;P&gt;Cheers, Giorgio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 12:22:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464190#M165484</guid>
      <dc:creator>GiorgioT</dc:creator>
      <dc:date>2023-03-10T12:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: forrtl: severe (66): output statement overflows record, unit -5, file Internal Formatted Write</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464196#M165485</link>
      <description>&lt;P&gt;Giorgio,&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;I am a beginner in Fortran scripting.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For future reference, you can subscript a character variable that has a length larger than 1.&lt;/P&gt;
&lt;P&gt;use VariableName(FirstIndex:LastIndex) = value&lt;/P&gt;
&lt;P&gt;For example, the 2nd character of your ex_no variable is referenced with ex_no(2:2).&lt;/P&gt;
&lt;P&gt;The 2nd and 3rd characters by ex_no(2:3), etc...&lt;/P&gt;
&lt;P&gt;You can apply this information to other situations where you need to manipulate text. Also consult TRIM, ADJUSTL and ADJUSTR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 12:45:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/forrtl-severe-66-output-statement-overflows-record-unit-5-file/m-p/1464196#M165485</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2023-03-10T12:45:37Z</dc:date>
    </item>
  </channel>
</rss>

