<?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 problem in debug version in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835535#M54792</link>
    <description>Thank you for the hint.&lt;BR /&gt;&lt;BR /&gt;I tried this before but with no result. &lt;BR /&gt;&lt;BR /&gt;After your hint i fiddled around with all the other settings for floating points and now i get it working in the expected way.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Sun, 08 May 2011 10:42:44 GMT</pubDate>
    <dc:creator>rainerjordan</dc:creator>
    <dc:date>2011-05-08T10:42:44Z</dc:date>
    <item>
      <title>problem in debug version</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835531#M54788</link>
      <description>Stumbled across a problem with debug version &lt;BR /&gt;&lt;BR /&gt;Please see code snippet:&lt;BR /&gt;&lt;BR /&gt; subroutine jiroush(bereich, pPa, ksizus, msd, d, l, h,  &lt;BR /&gt; 1                   hein, haus, rauh, ksirohr, pdyn, &lt;BR /&gt; 1                   pstat, paus, xein, xaus, roe, roa, rom, w )&lt;BR /&gt; &lt;BR /&gt; implicit         none&lt;BR /&gt; &lt;BR /&gt; integer          bereich  !Eintritts- und Austrittsbereich = 1,&lt;BR /&gt; !Rohrbereich = 2 ,Blendenbereich = 3&lt;BR /&gt;c     Eingabegabewerte&lt;BR /&gt; double precision ksizus, msd, d, l, h, rauh, pPa,&lt;BR /&gt; +                 pi1, hein, haus &lt;BR /&gt;c     lokale Werte&lt;BR /&gt; double precision vd, vw, pi, zweiphas, schlupf, schlupf1,&lt;BR /&gt; +                 x, spezVol_H2O,  pBar, palt, pMPaaus,&lt;BR /&gt; +                 zeta, R1, ts, siedet, pMPa, tsaus,&lt;BR /&gt; +                 enth_h2o, hdam, hwas, vwaus      !,logargument&lt;BR /&gt; character cdummy*1&lt;BR /&gt;c     Ausgabewerte&lt;BR /&gt; double precision w, pdyn, pstat, roa, rom, xein, xaus, ksirohr,&lt;BR /&gt; +                 paus,  roe       &lt;BR /&gt; &lt;BR /&gt;c     Alle Groessen in SI-Einheiten&lt;BR /&gt;c     de,da,g in kg/s&lt;BR /&gt;c     l,h,d in m&lt;BR /&gt;c     w,w0 in m/s&lt;BR /&gt;c     p, pdyn,pstat in Pa&lt;BR /&gt; pMPa     = pPa * 1d-6&lt;BR /&gt; pBar     = pPa * 1d-5&lt;BR /&gt; ts       = siedet(pMPa)&lt;BR /&gt;c            write(*,*) 'jirous 32 ts', ts, ' pMPa ', pMPa&lt;BR /&gt;&lt;BR /&gt; vd       = spezVol_H2O(ts, pMPa, 1)&lt;BR /&gt; vw       = spezVol_H2O(ts, pMPa, 2)&lt;BR /&gt; hwas     = enth_H2O(ts, pMPa, 2)&lt;BR /&gt; hdam     = enth_H2O(ts, pMPa, 1)&lt;BR /&gt; xein     = (hein - hwas)/(hdam - hwas)&lt;BR /&gt; xaus     = (haus - hwas)/(hdam - hwas)&lt;BR /&gt; &lt;BR /&gt;c      write(*,*) 'vw', vw,' vd',vd,' hwas', hwas,' hdam',hdam&lt;BR /&gt;c      write(*,*) 'hein ',hein,' haus ',haus,'xein',xein,' xaus',xaus&lt;BR /&gt; if(xaus .gt. 1d0) xaus = 1d0&lt;BR /&gt;&lt;BR /&gt; pi       = vd/vw&lt;BR /&gt; pi1      = pi - 1d0&lt;BR /&gt;&lt;BR /&gt; schlupf  = 10.d0**(0.031636d0+(0.07773d0+.051306d0*dlog10(pi))*&lt;BR /&gt; 1           dlog10(pi))&lt;BR /&gt; schlupf1 = pi-schlupf &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;c      write(*,*)'jiroush pi,vd,vw',pi,vd,vw&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;c        write (*,*)ksiein,ksiaus,ksirohr,w0,w,d,l,h,xein,xaus,&lt;BR /&gt;c    1                   rauh,pdyn,pstat,k,roa,rom,p&lt;BR /&gt;c        read (*,*)abc&lt;BR /&gt; if(bereich .eq. 0) then&lt;BR /&gt;c        Bestimmung der Dichte am Eintritt oder Austritt&lt;BR /&gt; if(h.lt.0.0d0)then            &lt;BR /&gt; roe  = 1.d0/(vw *(xein*pi1+1.d0)) &lt;BR /&gt; else&lt;BR /&gt; roe  = (schlupf-xein*(schlupf-1.d0))/&lt;BR /&gt; +                  (vw*(schlupf+xein*schlupf1))&lt;BR /&gt; endif&lt;BR /&gt;c      write(*,*)'ende jiroush bereich 0'&lt;BR /&gt; return&lt;BR /&gt; else if(bereich.eq.1.or.bereich.eq.3)then&lt;BR /&gt;c        Berechnung des dynamischen Druckverlustes fr Eintritts- und Austrittsbereich&lt;BR /&gt; !oder Blende enthlt auch den Beschleunigungsdruckverlust&lt;BR /&gt; write(*,*) 'jirous 72 ts', ts, ' pMPa ', pMPa&lt;BR /&gt; write(*,*) 'vw', vw,' vd',vd,' hwas', hwas,' hdam',hdam&lt;BR /&gt; write(*,*) 'hein ',hein,' haus ',haus,'xein',xein,' xaus',xaus&lt;BR /&gt; write(*,*)'jiroush pi,vd,vw',pi,vd,vw&lt;BR /&gt; paus = pPa&lt;BR /&gt; vwaus = vw&lt;BR /&gt; do &lt;BR /&gt; palt = paus&lt;BR /&gt; x = (xein + xaus) /2d0&lt;BR /&gt; roe =1d3&lt;BR /&gt; write(*,*)'pi1',pi1,' h',h, 'schlupf',schlupf,'s1',schlupf1&lt;BR /&gt; write(*,*)'xein ',xein,' xaus',xaus,' x',x, 'roe ',roe&lt;BR /&gt; write(*,*)'homogen roe',1.d0/(vw *(xein*pi1+1.d0))&lt;BR /&gt; if(h.lt.0.0d0)then            &lt;BR /&gt; rom  = 1.d0/(vw *(x*pi1+1.d0)) &lt;BR /&gt; roe  = 1.d0/(vw *(xein*pi1+1.d0)) &lt;BR /&gt; roa  = 1.d0/(vwaus *(xaus*pi1+1.d0)) &lt;BR /&gt; else&lt;BR /&gt; rom  = (schlupf-x*(schlupf-1.d0))/&lt;BR /&gt; +                 (vw*(schlupf+x*schlupf1))&lt;BR /&gt; roe  = (schlupf-xein*(schlupf-1.d0))/&lt;BR /&gt; +                  (vw*(schlupf+xein*schlupf1))&lt;BR /&gt;c       write(*,*)'in else clause homogen roe',1.d0/(vw *(xein*pi1+1.d0))&lt;BR /&gt; write(*,*) 'in else clause roe ', roe &lt;BR /&gt; roa  = (schlupf-xaus*(schlupf-1.d0))/&lt;BR /&gt; +                  (vwaus*(schlupf+xaus*schlupf1))&lt;BR /&gt; endif&lt;BR /&gt; w     = msd / rom&lt;BR /&gt; write(*,*)'msd ', msd,' ksizus ',ksizus, ' roe ', roe, &lt;BR /&gt; +    ' roa', roa&lt;BR /&gt; if(ksizus .gt. 2d0)       read(*,'(a1)') cdummy&lt;BR /&gt; pdyn  = ((ksizus/2.d0-2.d0)/roe +   !ksizus = ksiein oder ksiaus oder ksiblende&lt;BR /&gt; +               (ksizus/2.d0+2.d0)/roa) / 2.d0 * msd * msd                  &lt;BR /&gt; paus  = pPa - pdyn&lt;BR /&gt; pMPaaus = paus/1.d6&lt;BR /&gt; tsaus = siedet(pMPaaus)&lt;BR /&gt; write(*,*) 'jirous 93 tsaus', tsaus, ' pMPaaus ', pMPaaus,&lt;BR /&gt; + ' ppa ', ppa, ' pdyn', pdyn &lt;BR /&gt; vwaus = spezVol_H2O(tsaus, pMPaaus, 2)&lt;BR /&gt; hwas  = enth_H2O(tsaus, pMPaaus, 2)&lt;BR /&gt; hdam  = enth_H2O(tsaus, pMPaaus, 1)&lt;BR /&gt; xaus  = (haus - hwas) / (hdam - hwas)&lt;BR /&gt; if(dabs((paus-palt)/pPa) .lt. 1d-5) exit    &lt;BR /&gt; enddo&lt;BR /&gt;c      write(*,*)'ende jiroush bereich 1'&lt;BR /&gt; return&lt;BR /&gt; else    !bereich 2 Rohrbereich                                                    &lt;BR /&gt; and some code following       &lt;BR /&gt;&lt;BR /&gt;------------------&lt;BR /&gt;yes I know it's Fortran 77 but I do not know better &lt;GRIN&gt;&lt;BR /&gt;------------------&lt;BR /&gt;&lt;BR /&gt;this funtion works well several hundred times but then produces crach&lt;BR /&gt;&lt;BR /&gt;before crash it gives:&lt;BR /&gt; jirous 72 ts   152.408820704794       pMPa   0.507645249041383     &lt;BR /&gt; vw  1.093201625184451E-003  vd  0.369482632136270       hwas&lt;BR /&gt; 642.661148450612       hdam   2748.78329628054     &lt;BR /&gt; hein    670.501208031550       haus    670.501208031550      xein&lt;BR /&gt; 1.321863483066403E-002  xaus  1.321863483066403E-002&lt;BR /&gt; jiroush pi,vd,vw   337.982146773637       0.369482632136270     &lt;BR /&gt; 1.093201625184451E-003&lt;BR /&gt; pi1   336.982146773637       h  0.000000000000000E+000 schlupf&lt;BR /&gt; 3.60018121114453      s1   334.381965562492     &lt;BR /&gt; xein   1.321863483066403E-002  xaus  1.321863483066403E-002  x&lt;BR /&gt; 1.321863483066403E-002 roe    1000.00000000000     &lt;BR /&gt; homogen roe   167.706250247628     &lt;BR /&gt; in else clause roe    406.695938404221     &lt;BR /&gt; msd    1235.82263370958       ksizus    35.1243152660860       roe &lt;BR /&gt; 3.03868939178162       roa   3.03868939178162     &lt;BR /&gt;&lt;BR /&gt;my problem is variable roe&lt;BR /&gt;I set it to 1000.&lt;BR /&gt;enter if branch&lt;BR /&gt;because h is 0 it goes to else branch&lt;BR /&gt;it gives roe = 406...&lt;BR /&gt;after leaving end if&lt;BR /&gt;roe is 3.03&lt;BR /&gt;&lt;BR /&gt;subsequent usage of roe being too small causes crash&lt;BR /&gt;&lt;BR /&gt;cross checked with release version and it gives:&lt;BR /&gt;&lt;BR /&gt; jirous 72 ts   152.408820704794       pMPa   0.507645249041383     &lt;BR /&gt; vw  1.093201625184451E-003  vd  0.369482632136270       hwas&lt;BR /&gt;   642.661148450612       hdam   2748.78329628054     &lt;BR /&gt; hein    670.501208031550       haus    670.501208031550      xein&lt;BR /&gt;  1.321863483066403E-002  xaus  1.321863483066403E-002&lt;BR /&gt; jiroush pi,vd,vw   337.982146773637       0.369482632136270     &lt;BR /&gt;  1.093201625184451E-003&lt;BR /&gt; pi1   336.982146773637       h  0.000000000000000E+000 schlupf&lt;BR /&gt;   3.60018121114453      s1   334.381965562492     &lt;BR /&gt; xein   1.321863483066403E-002  xaus  1.321863483066403E-002  x&lt;BR /&gt;  1.321863483066403E-002 roe    1000.00000000000     &lt;BR /&gt; homogen roe   167.706250247628     &lt;BR /&gt; in else clause roe    406.695938404222     &lt;BR /&gt; msd    1235.82263370958       ksizus    35.1243152660860       roe &lt;BR /&gt;   406.695938404222       roa   406.695938404222     &lt;BR /&gt; &lt;BR /&gt;
In release version the value is correct&lt;BR /&gt;
&lt;BR /&gt;
What can I do to have a reliable program version in debug mode?&lt;/GRIN&gt;</description>
      <pubDate>Thu, 21 Apr 2011 13:48:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835531#M54788</guid>
      <dc:creator>rainerjordan</dc:creator>
      <dc:date>2011-04-21T13:48:04Z</dc:date>
    </item>
    <item>
      <title>problem in debug version</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835532#M54789</link>
      <description>Please edit your post to make it more readable. Select the code part, cut, click the Insert Code button (the yellow slanted pencil/pen icon), choose "Fortran fixed format" and paste from your Fortran source.&lt;BR /&gt;&lt;BR /&gt;Please, also, specify values for the input arguments to the subroutine which will enable the code to be run. Tell us what input values to give when READ statements are executed. State which version of the compiler you used, and which compiler options were in effect.&lt;BR /&gt;&lt;BR /&gt;Without that information, the number of possible combinations are too many for anyone to get interested.</description>
      <pubDate>Thu, 21 Apr 2011 15:22:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835532#M54789</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-04-21T15:22:26Z</dc:date>
    </item>
    <item>
      <title>problem in debug version</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835533#M54790</link>
      <description>Thank you for the hints.&lt;BR /&gt;&lt;BR /&gt;I looked up and found that ONE dummy variable was the receiving variable for almost all of the "returning" parameters (some calling levels up). So I assume that all the variables in question were pointing to the same address. &lt;BR /&gt;&lt;BR /&gt;Changed to appropiate number of "receiving" dummy variables and now it's working.&lt;BR /&gt;&lt;BR /&gt;Problem solved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;By the way: In former compiler versions a depply nested error could be traced easily. If a value was out of range (checked by if ....) the next stament was f.i. sqrt(-1.). The calculation crashed due to sqrt error and gave a traceback with all the calling functions.&lt;BR /&gt;&lt;BR /&gt;This does not work with the actual version with default settings. The program (debug version) keeps running. Only some values are NAN and program execution goes on. &lt;BR /&gt;&lt;BR /&gt;What switch I have to set to force the "former" behaviour?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;&lt;BR /&gt;Rainer</description>
      <pubDate>Tue, 26 Apr 2011 13:28:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835533#M54790</guid>
      <dc:creator>rainerjordan</dc:creator>
      <dc:date>2011-04-26T13:28:55Z</dc:date>
    </item>
    <item>
      <title>problem in debug version</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835534#M54791</link>
      <description>Try Setting:&lt;BR /&gt;Fortran -&amp;gt; Floating Point -&amp;gt; Floting Point Exception Handling &lt;BR /&gt;To:&lt;BR /&gt;Underflow gives 0.0; Abort on other IEEE exceptions (/fpe:0)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;/Magnus&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Apr 2011 13:44:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835534#M54791</guid>
      <dc:creator>jansson</dc:creator>
      <dc:date>2011-04-26T13:44:03Z</dc:date>
    </item>
    <item>
      <title>problem in debug version</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835535#M54792</link>
      <description>Thank you for the hint.&lt;BR /&gt;&lt;BR /&gt;I tried this before but with no result. &lt;BR /&gt;&lt;BR /&gt;After your hint i fiddled around with all the other settings for floating points and now i get it working in the expected way.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sun, 08 May 2011 10:42:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-in-debug-version/m-p/835535#M54792</guid>
      <dc:creator>rainerjordan</dc:creator>
      <dc:date>2011-05-08T10:42:44Z</dc:date>
    </item>
  </channel>
</rss>

