-
Notifications
You must be signed in to change notification settings - Fork 89
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
fix: issue 3499 #3500
base: develop
Are you sure you want to change the base?
fix: issue 3499 #3500
Conversation
@@ -250,7 +250,8 @@ void JFunctionCapillaryPressure::saveConvergedRockState( arrayView2d< real64 con | |||
{ | |||
permeability = convergedPermeability[ei][0][2]; | |||
} | |||
GEOS_ERROR_IF( permeability < LvArray::NumericLimits< real64 >::epsilon, "Zero permeability in J-function capillary pressure" ); | |||
// 9.869233×10−13 is Darcy to sq m factor | |||
GEOS_ERROR_IF( permeability < LvArray::NumericLimits< real64 >::epsilon * 9.869233e-13, "Zero permeability in J-function capillary pressure" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this error check even necessary? A zero permeability is a valid number and all underflows are flushed to zero.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a division down here
GEOS/src/coreComponents/constitutive/capillaryPressure/JFunctionCapillaryPressure.cpp
Line 267 in 6ebf576
real64 const porosityOverPermeability = pow( porosityAveragedOverQuadraturePoints, porosityExponent ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CusiniM ?
should fix #3499