<?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 how to convert character string into integer in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812548#M43590</link>
    <description>&lt;P&gt;An easy way to do this is to build with OpenMP enabled (you do not need to use OpenMP within the application). add use omp_lib then&lt;BR /&gt;&lt;BR /&gt;real(8) :: T1&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; T1 = OMP_GET_WTIME()&lt;BR /&gt;&lt;BR /&gt;Returns a double-precision value equal to the elapsed wallclock time (in seconds) relative to an arbitrary reference time.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2010 21:57:26 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2010-05-24T21:57:26Z</dc:date>
    <item>
      <title>how to convert character string into integer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812543#M43585</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to find the run time fora section of program in microseconds. Iput call date_and_time(data,time1)&lt;BR /&gt;and data_and_time(data,time2) at the beginning and the end of this section.&lt;BR /&gt;I know time1(8:10) and time2 (8:10) is the microseconds of the clock. Since this section is inside of a do loop, I want to calculate the total timewithin this session from the complete do loop.&lt;BR /&gt;How can I get time calculation with something like &lt;BR /&gt;t = t+ time2(8:10) - time1(8:10) if I set t = 0. outside of the do loop? In other words, how do I convert the character into integer here?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 May 2010 11:47:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812543#M43585</guid>
      <dc:creator>maria</dc:creator>
      <dc:date>2010-05-24T11:47:08Z</dc:date>
    </item>
    <item>
      <title>how to convert character string into integer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812544#M43586</link>
      <description>You could do the following (read up on "internal files" in a Fortran book):&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]    real :: t1,t2
    ...
    call date_and_time (data,time1)
    ...
    ...
    call date_and_time (data,time2)

    read(time1,123)t1
    read(time2,123)t2
123 format(F10.3)

    t_run = t2 - t1[/fortran]&lt;/PRE&gt; Note, however, that it may be more appropriate for you to call CPU_TIME rather than using the wall-clock time as you have done, especially if you are using a multi-user/multi-process OS.</description>
      <pubDate>Mon, 24 May 2010 12:02:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812544#M43586</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-05-24T12:02:32Z</dc:date>
    </item>
    <item>
      <title>how to convert character string into integer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812545#M43587</link>
      <description>For wall-clock time, system_clock() may be more appropriate, although the resolution for Intel Windows compiler is limited to 60 Hz.</description>
      <pubDate>Mon, 24 May 2010 12:43:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812545#M43587</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-05-24T12:43:10Z</dc:date>
    </item>
    <item>
      <title>how to convert character string into integer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812546#M43588</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=367365" class="basic" href="https://community.intel.com/en-us/profile/367365/"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
                &lt;DIV style="background-color: #e5e5e5; padding: 5px; border: 1px inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;the resolution for Intel Windows compiler is limited to 60 Hz.&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not true.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2010 15:25:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812546#M43588</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-05-24T15:25:37Z</dc:date>
    </item>
    <item>
      <title>how to convert character string into integer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812547#M43589</link>
      <description>Then it would be useful to know how to change it, and why it doesn't just work as it does for linux.</description>
      <pubDate>Mon, 24 May 2010 21:02:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812547#M43589</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-05-24T21:02:24Z</dc:date>
    </item>
    <item>
      <title>how to convert character string into integer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812548#M43590</link>
      <description>&lt;P&gt;An easy way to do this is to build with OpenMP enabled (you do not need to use OpenMP within the application). add use omp_lib then&lt;BR /&gt;&lt;BR /&gt;real(8) :: T1&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; T1 = OMP_GET_WTIME()&lt;BR /&gt;&lt;BR /&gt;Returns a double-precision value equal to the elapsed wallclock time (in seconds) relative to an arbitrary reference time.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2010 21:57:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812548#M43590</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-05-24T21:57:26Z</dc:date>
    </item>
    <item>
      <title>how to convert character string into integer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812549#M43591</link>
      <description>In fact, Jim's suggestion is the way I do it for Windows, although I could get somewhat better results on most machines with QueryPerformance.</description>
      <pubDate>Mon, 24 May 2010 23:32:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-convert-character-string-into-integer/m-p/812549#M43591</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-05-24T23:32:24Z</dc:date>
    </item>
  </channel>
</rss>

