- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello there,
I have a dll called by C++ that contains several Fortran-subroutines. Some of them use IMSL routines. Some of these like to give from time to time some informative output or some error output.
So I redirected both kinds of messages to the fileunit imsl_mess by using the IMSL routine UMACH:
errors: call umach(-3,imsl_mess)
info : call umach(-2,imsl_mess).
However, not unexpectedly, this slows down the code immensely, because I have to open and to close the unit inside each subroutine that uses IMSL.
My question:
Is there a way to redirect the IMSL messages to a buffer located in memory? Or even better: Is there a way to forbid IMSL-routines their talkative behaviour at all?
Thanks in advance,
Gernot
I have a dll called by C++ that contains several Fortran-subroutines. Some of them use IMSL routines. Some of these like to give from time to time some informative output or some error output.
So I redirected both kinds of messages to the fileunit imsl_mess by using the IMSL routine UMACH:
errors: call umach(-3,imsl_mess)
info : call umach(-2,imsl_mess).
However, not unexpectedly, this slows down the code immensely, because I have to open and to close the unit inside each subroutine that uses IMSL.
My question:
Is there a way to redirect the IMSL messages to a buffer located in memory? Or even better: Is there a way to forbid IMSL-routines their talkative behaviour at all?
Thanks in advance,
Gernot
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See ERSET (or ERRSET?) IMSL routine -- it controls the behaviour of error messages.
Re general issues of console output redirection -- see [url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_a_child_process_with_redirected_input_and_output.asp]this MSDN article.
Jugoslav
Re general issues of console output redirection -- see [url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_a_child_process_with_redirected_input_and_output.asp]this MSDN article.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you,
Jugoslav, ERSET is able to mute IMSL-messages.
fine!
Gernot
Jugoslav, ERSET is able to mute IMSL-messages.
fine!
Gernot

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