Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

out of bounds array

raviaglave
Beginner
586 Views
i under stand that out of bounds arrays can be detected using the -CB flag. the diagonistic flag -d1 or d2 prints certail messages. However I am not able to figure out from them which array is out of bounds. Is there some documentation which describes what the -d1 or -d2 level of diagonistics print out? How can one print them to a file instead of screen.
0 Kudos
1 Reply
wiefer
Beginner
586 Views
Hello,

This is what you probably already know:
IA-32 compiler Sets diagnostics level as follows: 
-d0 - displays procname line 
-d1 - displays local scalar variables 
-d2 - local and common scalars 
-d>2 - display first n elements of local and
       COMMON arrays, and all scalars.


You can easily print the diagnostics into a file redirecting the standard error
./a.out 2> error.txt

as long as you do not need stderr for your own purposes in the program (write(0,*)).

Juergen
0 Kudos
Reply