Thanks, John.

I am getting the same behavior on Linux Aspen Cluster
(kernel 2.6.32-279) with intel compiler 13.0.1, and also gcc 4.4.6, and on
Mac 10.8 Mountain Lion with clang (Apple's compiler).

-Manav

On Wed, Aug 28, 2013 at 5:18 PM, John Peterson <[email protected]> wrote:

>
>
>
>  On Wed, Aug 28, 2013 at 3:05 PM, Manav Bhatia <[email protected]>wrote:
>
>> Hi,
>>
>>    Has anyone attempted to use the --redirect-stdout command line
>> option lately?
>>
>>    All my file names are showing up with the processor-id
>> overwriting "stdout.processor." from the left-hand-side. So, for example,
>> processor 0 has a file name as "0tdout.processor.", processor 1 has
>> "1tdout.processor.", and so on.
>>
>>    I am getting the same behavior with both intel and gcc compilers.
>>
>>    Making the following modification to libmesh.C sets this right:
>>
>> std::stringstream filename("stdout.processor.");
>> filename <<  libMesh::processor_id();
>>
>> to
>>
>>  std::stringstream filename;
>> filename << "stdout.processor.";
>> filename <<  libMesh::processor_id();
>>
>> Not sure why it is not behaving correctly with the filename passed
>> throught
>> the constructor.
>>
>
> Hmm...
>
> http://www.cplusplus.com/reference/sstream/istringstream/istringstream/says:
>
> Constructs an istringstream <http://www.cplusplus.com/istringstream> object
> with a copy of str as content.
> Internally, its istream <http://www.cplusplus.com/istream::istream> base
> constructor is passed a pointer to a 
> stringbuf<http://www.cplusplus.com/stringbuf> object
> constructed with arguments based on str and which.
>
>  <https://lists.sourceforge.net/lists/listinfo/libmesh-users>
> but I admit I don't know where the next input is supposed to occur when
> you use this constructor.  What compiler/OS are you using?
>
> I'll test it here and make your change momentarily.
>
> --
> John
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to