Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect initialized floating variables (debug) #71

Open
fabienpaulot opened this issue Oct 8, 2024 · 1 comment
Open

Detect initialized floating variables (debug) #71

fabienpaulot opened this issue Oct 8, 2024 · 1 comment

Comments

@fabienpaulot
Copy link

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

@GFDL-Eric
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants