- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm plugging the Pardiso solver to a finite elements software. As my OS is Windows, I cannot juste redirect the printed output on the screen to a text file. Is there any option to redirect the output messages to a file ?
Thanks,
Valene
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am just wondering if someone has an answer to the question above, posted by Valene. Is there a way to redirect the Pardiso output messages to a different stream? I wrote a C++ program that calls the pardiso solver. The usual trick to redirect cout to something like ostream os is to do:
cout.rdbuf( os.rdbuf()),
but that will not work with pardiso. The output still goes to stdout.
Thank you in advance,
Gonzalo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As my OS is Windows, I cannot just redirect the printed output on the screen to a text file.is wrong, at least for a standard console mode application. Both stdout and stderr can be redirected to a file in a Windows command window.
Redirecting streams after your program has started is a little trickier, but do you need to take that route? Please present a complete example code showing what the problems are.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for your reply. I'm sorry it wasn't very clear. What I wanted to say is that I used Pardiso in a dll linked to my code, which has his own output. Of course, as a stand alone application, I could redirect the stream to a file from a windows command window.
I was just comparing to other programs such as Mumps which has an argument to set the stream for the output. I thought maybe it was possible with Pardiso too, in an easy way.
Thank you again for your reply. Don't bother too much for that.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page