-
Notifications
You must be signed in to change notification settings - Fork 28
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
Compiler flags identifying floating divide by zero runtime error #55
Comments
Do you get any runtime errors from I tried running all our test applications with valgrind, but no reported errors there. (Which doesn't mean no uninitialized values, IIRC, because valgrind only catches those when they affect a branch condition) I also tried a build with
but I don't see any uninitialized variable warnings from the compiler and I still pass |
I do not get any runtime errors with
however when I look at the summary of the build, it seems like some of the specified flags are not being used:
Perhaps some of the flags are skipped because I am using MPI compilers? Or am I interpreting the summary incorrectly? Also, are there some flags I could build MASA with that would provide more detailed error information? For example, the current error message I get when I run my executable does not indicate any Line or Source information for MASA, however having this additional information would be helpful for identifying the problem:
|
The version number of the MASA library (versioning information can be obtained by running the masa_version binary located in the bin/ directory of a local MASA installation)
the hardware and operating system
A description of the bug behavior
I am using MASA via the Fortran90 interface and compiling my source code with the following Intel Fortran compiler:
When I use the following flags (among others) to compile my source code, specifically
I obtain the following runtime error when running my executable:
For reference, Line 10911 in my Fortran90 source code is a call to
masa_init
:where
desired_mms_function = 'euler_2d'
. Note that when I compile without the aforementioned flags (i.e., without-check all,noarg_temp_created -init=snan -init=zero -init=arrays
), MASA runs correctly. For reference, the functions of the flags of interest are as follows (more info here):-init=arrays
specifies that we initialize all unitialized arrays and variables by the following;-init=nan
initializes all unitialized REAL and COMPLEX variables/arrays to nans to get caught by the nantrapping-init=zero
initializes all unitialized REAL, COMPLEX, INTEGER, and LOGICAL variables/arrays to zeroMy guess is that there are some unintialized variables in MASA, potentially in
fans_sa.cpp
(based on the above error message that I am getting), that are being caught by these flags, however I have been unable to identify specifically what part of the code is leading to the runtime error. Does anyone know how to address this issue?The text was updated successfully, but these errors were encountered: