Skip to content

Conversation

@mcflugen
Copy link
Contributor

This pull request fixes a divide-by-zero error in hydrosnow that caused a segmentation fault or floating point exception, depending on the system. A mass-balance check is done at the end of hydrosnow and if Minput is zero, which happens to be the denominator, a floating-point error may be triggered.

mcflugen and others added 3 commits September 4, 2020 16:58
* update bmi functions for BMI 2

* minor clean up

* use new hydro_initialize signature

* draw random numbers as they are needed

* use abs instead of fabs for integers

* update implementation for new BMI initialize function

* add CMAKE_MACOSX_RPATH to CMakeLists.txt
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

Successfully merging this pull request may close these issues.

1 participant