Open fabienpaulot opened 2 days ago
I know we have -ftrapuv enabled for debug... on that page, there is the mention of an alternate method for catching uninitialized variables -check uninit
, perhaps that could be utilized in addition to ftrapuv to make it quite obvious which variables are actually uninitialized (I'm not entirely sure what the end result of -check uninit is, a crash, a warning?). Here's the reference page: https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2024-1/ftrapuv-qtrapuv.html
It looks like the intel compiler has a compile option to detect initialized floating variables (https://www.intel.com/content/www/us/en/developer/articles/technical/detection-of-uninitialized-floating-point-variables-in-intel-fortran.html). As far as I can tell, this option is not used when compiling with -debug option. Provided I am right, it may be worth adding this flag as an additional check ? Thank you