- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.