<?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 Compiler error shape mismatch in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794043#M34191</link>
    <description>How is ITD declared in the caller?</description>
    <pubDate>Thu, 15 Mar 2012 13:53:41 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2012-03-15T13:53:41Z</dc:date>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794035#M34183</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: #0000ff; font-size: x-small;"&gt;&lt;SPAN style="font-family: Consolas; color: #0000ff; font-size: x-small;"&gt;&lt;SPAN style="font-family: Consolas; color: #0000ff; font-size: x-small;"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have a shape mismatch error for ITD. Not sure why can someone please help identify the mismatch.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBROUTINE NET (TD, ITD, N, T, Q) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DIMENSION TD (601), ITD (1552), T (N), Q (N) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;CALL NETEET (N, ITD, ITD (2), T, TD, TD (101), TD (601), ITD (3), &amp;amp;&lt;/P&gt;&lt;P&gt;ITD (53), ITD (553), ITD (1053), Q) &lt;/P&gt;&lt;P&gt;RETURN &lt;/P&gt;&lt;P&gt;END SUBROUTINE NET &lt;/P&gt;&lt;P&gt;SUBROUTINE NETEET (N, M, NT, T, G, TRM, HTC, KX, INDX, II, JJ, Q) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DIMENSION T (M), G (100), TRM (500), HTC (100), KX (50), INDX (500), II (500), JJ (500), Q (M) &lt;/P&gt;&lt;P&gt;COMMON DUM (800), QD (100) &lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 15:18:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794035#M34183</guid>
      <dc:creator>zekebryant</dc:creator>
      <dc:date>2012-03-09T15:18:37Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794036#M34184</link>
      <description>&lt;P&gt;The issue is likely your call to NETEET in NET. You are passing the array ITD in as the value of M which appears to be a scalar based on how you are using it.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;SUBROUTINE NET (TD, ITD, N, T, Q) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DIMENSION TD (601), ITD (1552), T (N), Q (N) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;CALL NETEET (N, &lt;SPAN style="text-decoration: underline;"&gt;ITD&lt;/SPAN&gt;, ITD (2), T, TD, TD (101), TD (601), ITD (3), &amp;amp;&lt;/P&gt;&lt;P&gt;ITD (53), ITD (553), ITD (1053), Q) &lt;/P&gt;&lt;P&gt;RETURN &lt;/P&gt;&lt;P&gt;END SUBROUTINE NET &lt;/P&gt;&lt;P&gt;SUBROUTINE NETEET (N, &lt;SPAN style="text-decoration: underline;"&gt;M&lt;/SPAN&gt;, NT, T, G, TRM, HTC, KX, INDX, II, JJ, Q) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DIMENSION T (&lt;SPAN style="text-decoration: underline;"&gt;M&lt;/SPAN&gt;), G (100), TRM (500), HTC (100), KX (50), INDX (500), II (500), JJ (500), Q (&lt;SPAN style="text-decoration: underline;"&gt;M&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;COMMON DUM (800), QD (100)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 09 Mar 2012 15:39:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794036#M34184</guid>
      <dc:creator>Anonymous66</dc:creator>
      <dc:date>2012-03-09T15:39:18Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794037#M34185</link>
      <description>ITD is defined in a COMMON Block in the main program&lt;BR /&gt;&lt;BR /&gt;COMMON / THERM2 / ITD (1552), IGBP (20, 5), ITP (15, 5)&lt;BR /&gt;&lt;BR /&gt;There are a few calls that other functions that pass ITD&lt;BR /&gt;&lt;BR /&gt;If I DIMENSION ITD(1) in these functions will it become a scalar in those functions</description>
      <pubDate>Fri, 09 Mar 2012 16:16:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794037#M34185</guid>
      <dc:creator>zekebryant</dc:creator>
      <dc:date>2012-03-09T16:16:28Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794038#M34186</link>
      <description>ITD is defined in a COMMON Block in the main program&lt;BR /&gt;&lt;BR /&gt;COMMON / THERM2 / ITD (1552), IGBP (20, 5), ITP (15, 5)&lt;BR /&gt;&lt;BR /&gt;There are a few calls that other functions that pass ITD&lt;BR /&gt;&lt;BR /&gt;If I DIMENSION ITD(1) in these functions will it become a scalar in those functions</description>
      <pubDate>Fri, 09 Mar 2012 16:20:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794038#M34186</guid>
      <dc:creator>zekebryant</dc:creator>
      <dc:date>2012-03-09T16:20:43Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794039#M34187</link>
      <description>&lt;BR /&gt;What Annalee is pointing out as the error can be fixed by your changing&lt;BR /&gt;&lt;BR /&gt; CALL NETEET (N, ITD, ITD (2), T, TD, TD (101), TD (601), ITD (3), &amp;amp;&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt; CALL NETEET (N, ITD&lt;B&gt;(1)&lt;/B&gt;, ITD (2), T, TD, TD (101), TD (601), ITD (3), &amp;amp;&lt;BR /&gt;&lt;BR /&gt;This will work correctly if the intended value of M has been set into ITD(1). As far as code generation is concerned, the object code is probably going to be the same whether ITD or ITD(1) is used as the second argument, since both have the same address. &lt;BR /&gt;&lt;BR /&gt;Whether ITD is in a common block or not in some other subroutine is not relevant.&lt;BR /&gt;&lt;BR /&gt;The problem with compiling old programs with interface checking turned on is that you will often see complaints such as this, which you obviously do not like to spring up, as well as warnings about other shady practices that will one day give an unpleasant surprise.</description>
      <pubDate>Fri, 09 Mar 2012 16:46:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794039#M34187</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-03-09T16:46:46Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794040#M34188</link>
      <description>No, a 1 element array is not the same as a scalar.</description>
      <pubDate>Fri, 09 Mar 2012 16:47:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794040#M34188</guid>
      <dc:creator>Anonymous66</dc:creator>
      <dc:date>2012-03-09T16:47:14Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794041#M34189</link>
      <description>Thanks for thefeedback. I am in the process of updating old Fortan 66 and 77 code. I using your complier to identify all of the issues and hopeful resolve them. I was able to work pass this error with your help.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 09 Mar 2012 18:30:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794041#M34189</guid>
      <dc:creator>zekebryant</dc:creator>
      <dc:date>2012-03-09T18:30:18Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794042#M34190</link>
      <description>I looking for some advice for the best practice to help resolve the following code error. This code is being converted from .FOR to f90.&lt;BR /&gt;&lt;BR /&gt;The following is code in question:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;CALL TEMPIN (TITLE, NBRG, ITEMP, IPUNCH, IUB, ITD, N, T, ITP, TB, &amp;amp;&lt;/P&gt;&lt;P&gt;TD, IGBP, BCP, TD, ITD, IT1, EP1, IT2, EP2, START, STEPIN, STOP, &amp;amp;&lt;/P&gt;&lt;P&gt;TTIME, BTIME, VDC, TMAX, BD)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/////////////////////////&lt;/P&gt;&lt;P&gt;SUBROUTINE TEMPIN (TITLE, NBRG, ITEMP, IPUNCH, IUB, M, N, T, ITP, &amp;amp;&lt;/P&gt;&lt;P&gt;TB, G, IGBP, BCP, TD, ITD, IT1, EP1, IT2, EP2, START, STEPIN, &amp;amp;&lt;/P&gt;&lt;P&gt;STOP, TTIME, BTIME, VDC, TMAX, BD) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;!INTEGER(2) SSQMSF &lt;/P&gt;&lt;P&gt;CHARACTER(1) LIST &lt;/P&gt;&lt;P&gt;CHARACTER(48) MESSAGE &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;COMMON / CONGHT / GCONS (100), IGCONS (100) &lt;/P&gt;&lt;P&gt;COMMON / UNITS / IMET &lt;/P&gt;&lt;P&gt;COMMON / LSTDAT / LIST (80), KTEST &lt;/P&gt;&lt;P&gt;COMMON / LSTMES / MESSAGE &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! IMET=0 ==&amp;gt; ENGLISH UNIT INPUT &lt;/P&gt;&lt;P&gt;! IMET=1 ==&amp;gt; METRIC UNIT INPUT &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! $LARGE:TEXT &lt;/P&gt;&lt;P&gt;DIMENSION TITLE (47), T (M), ITP (15, 5), TB (15, 5), G (M), &amp;amp;&lt;/P&gt;&lt;P&gt;IGBP (20, 5), BCP (4, 8, 5), TD (690), ITD (1552), VDC (N), &amp;amp;&lt;/P&gt;&lt;P&gt;TEXT (25), IDU (5), DU (5), BD (1830, 5)&lt;BR /&gt;&lt;BR /&gt;//////&lt;BR /&gt;&lt;BR /&gt;M in TEMPIN is problem error #6634 shape matching rule&lt;BR /&gt;&lt;BR /&gt;What is the best procedure to correct the problem is the question.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 13:37:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794042#M34190</guid>
      <dc:creator>zekebryant</dc:creator>
      <dc:date>2012-03-15T13:37:03Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794043#M34191</link>
      <description>How is ITD declared in the caller?</description>
      <pubDate>Thu, 15 Mar 2012 13:53:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794043#M34191</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-03-15T13:53:41Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794044#M34192</link>
      <description>&lt;SPAN style="font-family: Consolas; font-size: x-small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: x-small;"&gt;&lt;P&gt;Here is the definition&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: #0000ff; font-size: x-small;"&gt;&lt;SPAN style="font-family: Consolas; color: #0000ff; font-size: x-small;"&gt;&lt;SPAN style="font-family: Consolas; color: #0000ff; font-size: x-small;"&gt;COMMON&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: x-small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: x-small;"&gt; / THERM2 / ITD (1552), IGBP (20, 5), ITP (15, 5) &lt;/SPAN&gt;&lt;/SPAN&gt;</description>
      <pubDate>Thu, 15 Mar 2012 15:29:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794044#M34192</guid>
      <dc:creator>zekebryant</dc:creator>
      <dc:date>2012-03-15T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794045#M34193</link>
      <description>So, ITD is an array containing 1552 integers. One of these, presumably ITD(1), is supposed to be equal to the desired value of M, the sixth formal argument of the subroutine. &lt;BR /&gt;&lt;BR /&gt;Verify that the value of M is placed into ITD(1) before the CALL, and replace the actual argument ITD by ITD(1), as I suggested in #4.&lt;BR /&gt;&lt;BR /&gt;I doubt that more concrete recommendations can be given since we cannot reach back in time and deduce what the author intended to be done with these lines of code.</description>
      <pubDate>Thu, 15 Mar 2012 15:40:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794045#M34193</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-03-15T15:40:44Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794046#M34194</link>
      <description>I followed the procedure, but when I try to use T(M) for example:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;! ... THE TEMPERATURES WILL BE CALCULATED &lt;/P&gt;&lt;P&gt;100 DO 105 I = 1, M &lt;/P&gt;&lt;P&gt;T (I) = TEMP &lt;BR /&gt;&lt;BR /&gt;run time error is generated. When I dug the code T has no array length even thoughthe value of M is 3D.&lt;BR /&gt;&lt;BR /&gt;This why I ask the additional question. Please adivce on what I do not understand. Below is the entire routine.&lt;/P&gt;&lt;P&gt;SUBROUTINE TEMPIN (TITLE, NBRG, ITEMP, IPUNCH, IUB, M, N, T, ITP, &amp;amp;&lt;/P&gt;&lt;P&gt;TB, G, IGBP, BCP, TD, ITD, IT1, EP1, IT2, EP2, START, STEPIN, &amp;amp;&lt;/P&gt;&lt;P&gt;STOP, TTIME, BTIME, VDC, TMAX, BD) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;!INTEGER(2) SSQMSF &lt;/P&gt;&lt;P&gt;CHARACTER(1) LIST &lt;/P&gt;&lt;P&gt;CHARACTER(48) MESSAGE &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;COMMON / CONGHT / GCONS (100), IGCONS (100) &lt;/P&gt;&lt;P&gt;COMMON / UNITS / IMET &lt;/P&gt;&lt;P&gt;COMMON / LSTDAT / LIST (80), KTEST &lt;/P&gt;&lt;P&gt;COMMON / LSTMES / MESSAGE &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! IMET=0 ==&amp;gt; ENGLISH UNIT INPUT &lt;/P&gt;&lt;P&gt;! IMET=1 ==&amp;gt; METRIC UNIT INPUT &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! $LARGE:TEXT &lt;/P&gt;&lt;P&gt;DIMENSION TITLE (47), T (M), ITP (15, 5), TB (15, 5), G (M), &amp;amp;&lt;/P&gt;&lt;P&gt;IGBP (20, 5), BCP (4, 8, 5), TD (690), ITD (1552), VDC (N), &amp;amp;&lt;/P&gt;&lt;P&gt;TEXT (25), IDU (5), DU (5), BD (1830, 5) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DATA TEXT / 'COND', 'UCTI', 'ON ', ' ', ' ', 'FREE', ' CON'&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;, 'VECT', 'ION ', ' ', 'FORC', 'ED C', 'ONVE', 'CTIO', 'N ', &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;'RADI', 'ATIO', 'N ', 2 * ' ', 'FLUI', 'D FL', 'OW ', 2 * ' &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; ' / &lt;/P&gt;&lt;P&gt;IN = 5 &lt;/P&gt;&lt;P&gt;KUT = 6 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! CHECK FOR PRESENCE OF HARDWARE LOCK &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;!KSUM = SSQMSF (LIST) &lt;/P&gt;&lt;P&gt;IF (KSUM.NE.KTEST) THEN &lt;/P&gt;&lt;P&gt;WRITE ( *, * ) MESSAGE &lt;/P&gt;&lt;P&gt;! STOP &lt;/P&gt;&lt;P&gt;ENDIF &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! SET TEMPERATURE CONVERSION FACTORS &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;C1 = 1.8 &lt;/P&gt;&lt;P&gt;C2 = 32.0 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DO 1 I = 1, 100 &lt;/P&gt;&lt;P&gt;GCONS (I) = 0. &lt;/P&gt;&lt;P&gt;IGCONS (I) = 0 &lt;/P&gt;&lt;P&gt;1 END DO &lt;/P&gt;&lt;P&gt;DO 5 I = 1, 20 &lt;/P&gt;&lt;P&gt;DO 5 J = 1, 5 &lt;/P&gt;&lt;P&gt;IGBP (I, J) = 0 &lt;/P&gt;&lt;P&gt;IF (I.LE.15) ITP (I, J) = 0 &lt;/P&gt;&lt;P&gt;IF (I.LE.15) TB (I, J) = 0.0 &lt;/P&gt;&lt;P&gt;5 CONTINUE &lt;/P&gt;&lt;P&gt;! ... READ CONTROLLING CARD AND SET SOME VARIABLES &lt;/P&gt;&lt;P&gt;READ (IN, 10) M, N, TEMP, IPUNCH, IUB, IT1, EP1, IT2, EP2, START, &amp;amp;&lt;/P&gt;&lt;P&gt;STOP, STEPIN, TTIME, BTIME, TMAX &lt;/P&gt;&lt;P&gt;10 FORMAT(2I5, F5.0, 3I5, F5.0, I5, 7F5.0 ) &lt;/P&gt;&lt;P&gt;IF (ABS (TMAX) .LT.1.E-30.AND.IMET.EQ.1) TMAX = 600. &lt;/P&gt;&lt;P&gt;IF (ABS (TMAX) .LT.1.E-30.AND.IMET.EQ.0) TMAX = 600. * C1 + C2 &lt;/P&gt;&lt;P&gt;IF (EP1.LE.0.0.AND.IMET.EQ.1) EP1 = 2.0 &lt;/P&gt;&lt;P&gt;IF (EP1.LE.0.0.AND.IMET.EQ.0) EP1 = 2.0 * C1 &lt;/P&gt;&lt;P&gt;ITEMP = 1 &lt;/P&gt;&lt;P&gt;IF (M.EQ.0) ITEMP = 0 &lt;/P&gt;&lt;P&gt;IF (ABS (STOP - START) .GT.0) ITEMP = 2 &lt;/P&gt;&lt;P&gt;IF (M.GT.0) WRITE (KUT, 15) TITLE &lt;/P&gt;&lt;P&gt;15 FORMAT('1'////' ',27A4/'0', 20A4) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... STEADY STATE &lt;/P&gt;&lt;P&gt;IF (ITEMP.NE.1) GOTO 28 &lt;/P&gt;&lt;P&gt;WRITE (KUT, 20) IT1, EP1 &lt;/P&gt;&lt;P&gt;20 FORMAT('0STEADY STATE TEMPERATURE CALCULATION. ITERATION LIMIT', &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; I4,', ABSOLUTE ACCURACY', F6.2, ' DEGREES') &lt;/P&gt;&lt;P&gt;IF (IUB.NE.0) WRITE (KUT, 25) &lt;/P&gt;&lt;P&gt;25 FORMAT(' ', 5X, 'INTERMEDIATE OUTPUT WILL BE OBTAINED') &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... TRANSIENT &lt;/P&gt;&lt;P&gt;28 IF (ITEMP.NE.2) GOTO 35 &lt;/P&gt;&lt;P&gt;WRITE (KUT, 30) START, STOP, TTIME, BTIME, TMAX &lt;/P&gt;&lt;P&gt;30 FORMAT('0TRANSIENT TEMPERATURE CALCULATION, BEGINNING AT TIME', &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; F7.1, ' SECONDS, ENDING AT TIME', F7.1, ' SECONDS.'/ &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; ' ', 5X, 'TEMPERATURE OUTPUT INTERVAL', F7.1,' BEARING CALCULA',&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; 'TION INTERVAL',F7.1, ' MAXIMUM ALLOWABLE TEMPERATURE', F7.1 ) &lt;/P&gt;&lt;P&gt;IF (IUB.NE.0) WRITE (KUT, 32) &lt;/P&gt;&lt;P&gt;32 FORMAT(' ', 5X, 'BEARING OUTPUT WILL BE OBTAINED AFTER EACH', &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; ' BEARING CALCULATION') &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;35 IF (IMET.EQ.1) WRITE (KUT, 40) &lt;/P&gt;&lt;P&gt;IF (IMET.EQ.0) WRITE (KUT, 41) &lt;/P&gt;&lt;P&gt;40 FORMAT('0UNLESS OTHERWISE STATED, INTERNATIONAL UNITS ARE USED'//) &lt;/P&gt;&lt;P&gt;41 FORMAT('0UNLESS OTHERWISE STATED, ENGLISH UNITS ARE USED'//) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! FOR IMET=0, CONVERT VALUES OF TEMP, EP1, AND TMAX TO METRIC. &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;IF (IMET.EQ.1) GOTO 45 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;EP1 = EP1 / C1 &lt;/P&gt;&lt;P&gt;TMAX = (TMAX - C2) / C1 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;45 CONTINUE &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;IF (NBRG.EQ.0) GOTO 100 &lt;/P&gt;&lt;P&gt;IF (ITEMP.NE.0) GOTO 100 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... READ AND WRITE INITIAL BEARING TEMPERATURES &lt;/P&gt;&lt;P&gt;DO 65 I = 1, NBRG &lt;/P&gt;&lt;P&gt;READ (IN, 60) (TB (J, I), J = 1, 15) &lt;/P&gt;&lt;P&gt;60 FORMAT (16F5.0) &lt;/P&gt;&lt;P&gt;65 END DO &lt;/P&gt;&lt;P&gt;WRITE (KUT, 70) &lt;/P&gt;&lt;P&gt;70 FORMAT('0GIVEN TEMPERATURES') &lt;/P&gt;&lt;P&gt;WRITE (KUT, 75) &lt;/P&gt;&lt;P&gt;75 FORMAT('0',5X,'BRG O.RACE I.RACE BULK OIL FLNG.1 FLNG.2 FLN&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;G.3 FLNG.4 CAGE SHAFT I.RING ROLL.EL. O.RING HSG.') &lt;/P&gt;&lt;P&gt;DO 80 I = 1, NBRG &lt;/P&gt;&lt;P&gt;WRITE (KUT, 85) I, (TB (J, I), J = 1, 13) &lt;/P&gt;&lt;P&gt;80 END DO &lt;/P&gt;&lt;P&gt;85 FORMAT (' ', 5X, I2, 2X, 7( F8.2,1X,F8.2 )) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;IF (IMET.EQ.1) GOTO 95 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! CONVERT BEARING TEMPERATURES TO DEGREES C IF IMET=0. &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DO 90 I = 1, NBRG &lt;/P&gt;&lt;P&gt;DO 90 J = 1, 13 &lt;/P&gt;&lt;P&gt;TB (J, I) = (TB (J, I) - C2) / C1 &lt;/P&gt;&lt;P&gt;90 CONTINUE &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;95 CONTINUE &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;RETURN &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... THE TEMPERATURES WILL BE CALCULATED &lt;/P&gt;&lt;P&gt;100 DO 105 I = 1, M &lt;/P&gt;&lt;P&gt;T (I) = TEMP &lt;/P&gt;&lt;P&gt;105 G (I) = 0. &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... READ INITIAL TEMPERATURES (AND NODES) NOT EQUAL TO TEMP &lt;/P&gt;&lt;P&gt;CALL INDUM (T, J) &lt;/P&gt;&lt;P&gt;IF (NBRG.EQ.0) GOTO 180 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... READ AND WRITE BEARING TEMPERATURE NODE POINTERS &lt;/P&gt;&lt;P&gt;DO 120 I = 1, NBRG &lt;/P&gt;&lt;P&gt;READ (IN, 118) (ITP (J, I), J = 1, 13) &lt;/P&gt;&lt;P&gt;118 FORMAT (16I5) &lt;/P&gt;&lt;P&gt;120 END DO &lt;/P&gt;&lt;P&gt;WRITE (KUT, 125) &lt;/P&gt;&lt;P&gt;125 FORMAT('0NODE POINTERS') &lt;/P&gt;&lt;P&gt;WRITE (KUT, 75) &lt;/P&gt;&lt;P&gt;DO 130 I = 1, NBRG &lt;/P&gt;&lt;P&gt;130 WRITE (KUT, 135) I, (ITP (J, I), J = 1, 13) &lt;/P&gt;&lt;P&gt;135 FORMAT (' ',5X, I2, 7( I8,1X,I8 )) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... READ AND WRITE BEARING GENERATED HEAT POINTERS &lt;/P&gt;&lt;P&gt;119 FORMAT(10I5) &lt;/P&gt;&lt;P&gt;DO 150 I = 1, NBRG &lt;/P&gt;&lt;P&gt;LIM = 18 &lt;/P&gt;&lt;P&gt;IF (BD (1, I) .LT.0.) LIM = 10 &lt;/P&gt;&lt;P&gt;READ (IN, 119) (IGBP (J, I), J = 1, LIM) &lt;/P&gt;&lt;P&gt;150 END DO &lt;/P&gt;&lt;P&gt;WRITE (KUT, 155) &lt;/P&gt;&lt;P&gt;155 FORMAT(/'0NODES WHERE BEARING HEAT IS GENERATED'/'0', 5X, &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; 'BRG',2X,'OUTER RACE INNER RACE R.E.DRAG CAGE-R.E. CAGE-&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;LAND FLNG.1-RE FLNG.2-RE FLNG.3-RE FLNG.4-RE' ) &lt;/P&gt;&lt;P&gt;DO 160 I = 1, NBRG &lt;/P&gt;&lt;P&gt;160 WRITE (KUT, 165) I, (IGBP (J, I), J = 1, 18) &lt;/P&gt;&lt;P&gt;165 FORMAT (6X, I2, 18I6 ) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... READ AND WRITE CONSTANT GENERATED HEATS &lt;/P&gt;&lt;P&gt;180 CALL INDUM (G, IG) &lt;/P&gt;&lt;P&gt;IF (IG.LE.0) GOTO 191 &lt;/P&gt;&lt;P&gt;WRITE (KUT, 185) &lt;/P&gt;&lt;P&gt;185 FORMAT(/'0CONSTANT GENERATED HEATS'//'0', 5X, 5(5X,'NODE GEN. HEA&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;T') / ) &lt;/P&gt;&lt;P&gt;NGH = 0 &lt;/P&gt;&lt;P&gt;KOUNTR = 0 &lt;/P&gt;&lt;P&gt;DO 190 I = 1, N &lt;/P&gt;&lt;P&gt;IF (G (I) .EQ.0.) GOTO 186 &lt;/P&gt;&lt;P&gt;KOUNTR = KOUNTR + 1 &lt;/P&gt;&lt;P&gt;GCONS (KOUNTR) = G (I) &lt;/P&gt;&lt;P&gt;IGCONS (KOUNTR) = I &lt;/P&gt;&lt;P&gt;NGH = NGH + 1 &lt;/P&gt;&lt;P&gt;IDU (NGH) = I &lt;/P&gt;&lt;P&gt;DU (NGH) = G (I) &lt;/P&gt;&lt;P&gt;186 IF (NGH.EQ.5.OR.I.EQ.N) WRITE (KUT, 188) (IDU (J), DU (J), &amp;amp;&lt;/P&gt;&lt;P&gt;J = 1, NGH) &lt;/P&gt;&lt;P&gt;188 FORMAT (' ', 4X, 5(I10, F10.2) ) &lt;/P&gt;&lt;P&gt;IF (NGH.EQ.5) NGH = 0 &lt;/P&gt;&lt;P&gt;190 END DO &lt;/P&gt;&lt;P&gt;191 CONTINUE &lt;/P&gt;&lt;P&gt;IF (IMET.EQ.1) GOTO 198 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! FOR IMET=0, CONVERT TEMPERATURE ARRAY (T) AND GENERATED HEAT &lt;/P&gt;&lt;P&gt;! ARRAYS (G &amp;amp; GCONS) TO METRIC UNITS (DEG. C &amp;amp; WATTS). &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DO 195 I = 1, M &lt;/P&gt;&lt;P&gt;T (I) = (T (I) - C2) / C1 &lt;/P&gt;&lt;P&gt;195 END DO &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;DO 196 I = 1, N &lt;/P&gt;&lt;P&gt;G (I) = G (I) * 0.29301 &lt;/P&gt;&lt;P&gt;GCONS (I) = GCONS (I) * 0.29301 &lt;/P&gt;&lt;P&gt;196 END DO &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;198 CONTINUE &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... READ AND WRITE HEAT TRANSFER COEFFICIENTS &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;200 CALL RWHTC (TITLE, TEXT, ITD (3), TD (601) ) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... READ AND WRITE GEOMETRY CARDS &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;CALL RWG (TITLE, TEXT, ITD (3), TD (601), BCP, TD (101), ITD (53),&amp;amp;&lt;/P&gt;&lt;P&gt;ITD (553), ITD (1053), ITD (2) ) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;IF (ITEMP.NE.2) GOTO 250 &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... READ AND WRITE HEAT CAPACITY CARDS &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;CALL RWHC (TITLE, N, VDC) &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;! ... PRINT FIRST TEMPERATURE MAP &lt;/P&gt;&lt;P&gt;250 CALL TMAP (TITLE, ITEMP, M, N, 0, START, T) &lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;END&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 18:41:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794046#M34194</guid>
      <dc:creator>zekebryant</dc:creator>
      <dc:date>2012-03-15T18:41:50Z</dc:date>
    </item>
    <item>
      <title>Compiler error shape mismatch</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794047#M34195</link>
      <description>You have not shown us the error message. I do not know what you mean by "the value of M is 3D". Perhaps you could add a:&lt;BR /&gt;&lt;BR /&gt;PRINT *, M&lt;BR /&gt;&lt;BR /&gt;just before the DO loop so you can see what the value is. But you may not have passed array T correctly.&lt;BR /&gt;&lt;BR /&gt;It is hard to help based on pieces of the program, with so much that we cannot see.</description>
      <pubDate>Mon, 26 Mar 2012 20:27:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-error-shape-mismatch/m-p/794047#M34195</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-03-26T20:27:47Z</dc:date>
    </item>
  </channel>
</rss>

