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

Initialize velocity component array #46

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

mwtoews
Copy link
Collaborator

@mwtoews mwtoews commented Mar 5, 2019

With gfortran, the velocity component array was left uninitialized, sometimes with NaNs (or not). This creates an issue where models sometimes hit a floating point exception and crash (or not), about 50% of the time. For example, p09 in flopy3_MT3DMS_examples.ipynb sometimes crashes mt3dms. This bug behaved similarly in mt3d-usgs.

@langevin-usgs
Copy link
Collaborator

@mwtoews thanks so much for digging in and finding this bug. The erratic nature of that uninitialized variable was frustrating. @emorway-usgs, it would probably be a good idea to do some more checking with some of the intel tools to find if any other uninitialized variables are being used anywhere in the program.

@emorway-usgs
Copy link
Collaborator

This fix offered in this pull request has been referenced by modflowpy/flopy#466

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

Successfully merging this pull request may close these issues.

None yet

3 participants