<?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: Problem with string concatenation in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-string-concatenation/m-p/746472#M4307</link>
    <description>Thanks for the reply... I didn't realize that the blanks counted. It makes a lot more sense now :)&lt;BR /&gt;</description>
    <pubDate>Mon, 21 Jan 2008 03:30:43 GMT</pubDate>
    <dc:creator>alexism</dc:creator>
    <dc:date>2008-01-21T03:30:43Z</dc:date>
    <item>
      <title>Problem with string concatenation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-string-concatenation/m-p/746470#M4305</link>
      <description>Hi everyone, &lt;BR /&gt;&lt;BR /&gt; I'm having problems figuring out why this does not work:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;program test&lt;BR /&gt;implicit none&lt;BR /&gt;character*20 :: string&lt;BR /&gt;string="hello"&lt;BR /&gt;string=string//"goodbye"&lt;BR /&gt;print*,string&lt;BR /&gt;end program test&lt;BR /&gt;&lt;BR /&gt;Why doesn't the "goobye" get appended?  If I reverse the order of the &lt;BR /&gt;concatenation, it does work:&lt;BR /&gt;&lt;BR /&gt;program test&lt;BR /&gt;implicit none&lt;BR /&gt;character*20 :: string&lt;BR /&gt;string="hello"&lt;BR /&gt;string="goodbye"//string&lt;BR /&gt;print*,string&lt;BR /&gt;end program test&lt;BR /&gt;&lt;BR /&gt;Thanks! &lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Jan 2008 08:25:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-string-concatenation/m-p/746470#M4305</guid>
      <dc:creator>alexism</dc:creator>
      <dc:date>2008-01-20T08:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with string concatenation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-string-concatenation/m-p/746471#M4306</link>
      <description>Your first example pads string out to 20 characters including blanks. When you append "goodbye" you have a string of 27 characters. You assign the first 20 characters to string and lose the remaining characters. You may be looking for something like&lt;BR /&gt;string = string(1:6)//"goodbye"&lt;BR /&gt;&lt;BR /&gt;In the second example, you make a string of 27 characters including blanks, then discard 7 blanks.&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Jan 2008 14:43:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-string-concatenation/m-p/746471#M4306</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-01-20T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with string concatenation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-string-concatenation/m-p/746472#M4307</link>
      <description>Thanks for the reply... I didn't realize that the blanks counted. It makes a lot more sense now :)&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jan 2008 03:30:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-string-concatenation/m-p/746472#M4307</guid>
      <dc:creator>alexism</dc:creator>
      <dc:date>2008-01-21T03:30:43Z</dc:date>
    </item>
  </channel>
</rss>

