Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Dump run-time error message

OP1
New Contributor III
772 Views
Is there a convenient way to automatically dump a run-time error message in a file, instead of having it displayed on screen?

Thanks,

Olivier
0 Kudos
1 Solution
onkelhotte
New Contributor II
772 Views
Quoting - opmkl
Is there a convenient way to automatically dump a run-time error message in a file, instead of having it displayed on screen?

Thanks,

Olivier

Use can use

[cpp]l=SETENVQQ('FOR_DIAGNOSTIC_LOG_FILE=myFilename)[/cpp]

This still gives you the error message on screen, but writes them in a file, you declared in myFilename.

Markus

View solution in original post

0 Kudos
3 Replies
gib
New Contributor II
772 Views
Quoting - opmkl
Is there a convenient way to automatically dump a run-time error message in a file, instead of having it displayed on screen?

Thanks,

Olivier
In Windows (and maybe *nix):
myprog 2> error.log
0 Kudos
onkelhotte
New Contributor II
773 Views
Quoting - opmkl
Is there a convenient way to automatically dump a run-time error message in a file, instead of having it displayed on screen?

Thanks,

Olivier

Use can use

[cpp]l=SETENVQQ('FOR_DIAGNOSTIC_LOG_FILE=myFilename)[/cpp]

This still gives you the error message on screen, but writes them in a file, you declared in myFilename.

Markus
0 Kudos
OP1
New Contributor III
772 Views
Excellent! That's exactly what I was looking for.
Thanks a lot!

Olivier
0 Kudos
Reply