Closed mwtoews closed 5 years ago
@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.
This fix offered in this pull request has been referenced by https://github.com/modflowpy/flopy/issues/466
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
inflopy3_MT3DMS_examples.ipynb
sometimes crashesmt3dms
. This bug behaved similarly inmt3d-usgs
.