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

debug options

diedro
Beginner
445 Views

Dear all,

Usually, when I compile, I use the option -CB in order to check the correct allocations of my vector.  Is there any option to check the variables that I do not use in my code?

Thanks a lot

0 Kudos
2 Replies
FortranFan
Honored Contributor III
445 Views

See this: https://software.intel.com/en-us/node/579521

 

0 Kudos
Kevin_D_Intel
Employee
445 Views

To check for uninitialized variables, try: -check uninit  (see FortranFan's cited URL)

To check for unused variables, try: -warn unused  (https://software.intel.com/en-us/node/579575)

0 Kudos
Reply