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

fix: issue 3499 #3500

Merged
merged 11 commits into from
Feb 4, 2025
Merged

fix: issue 3499 #3500

merged 11 commits into from
Feb 4, 2025

Conversation

paveltomin
Copy link
Contributor

should fix #3499

@paveltomin paveltomin added type: bug Something isn't working flag: ready for review labels Dec 19, 2024
@paveltomin paveltomin self-assigned this Dec 19, 2024
@paveltomin paveltomin added the flag: no rebaseline Does not require rebaseline label Dec 23, 2024
@@ -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" );
Copy link
Collaborator

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.

Copy link
Contributor Author

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

real64 const porosityOverPermeability = pow( porosityAveragedOverQuadraturePoints, porosityExponent )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paveltomin paveltomin added ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI ci: run code coverage enables running of the code coverage CI jobs labels Jan 14, 2025
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.52%. Comparing base (8f9126c) to head (a0e10b1).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3500      +/-   ##
===========================================
- Coverage    56.53%   56.52%   -0.01%     
===========================================
  Files         1157     1157              
  Lines       100617   100617              
===========================================
- Hits         56880    56878       -2     
- Misses       43737    43739       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@paveltomin paveltomin removed ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI ci: run code coverage enables running of the code coverage CI jobs labels Jan 16, 2025
Comment on lines +33 to +34
/// Darcy to m^2 conversion factor
static constexpr double DarcyToSqM = 9.869233e-13;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good to me. Just a small thing, you could move this constant into PhysicsConstant.hpp if you think it fits better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good to me. Just a small thing, you could move this constant into PhysicsConstant.hpp if you think it fits better.

thank
will keep it in units

@paveltomin paveltomin added ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: no rebaseline Does not require rebaseline and removed flag: no rebaseline Does not require rebaseline labels Feb 4, 2025
@paveltomin paveltomin merged commit 9cfb92a into develop Feb 4, 2025
24 of 25 checks passed
@paveltomin paveltomin deleted the pt/fix-3499 branch February 4, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: no rebaseline Does not require rebaseline flag: ready for review type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nonsensical low permeability check in JFunctionCapillaryPressure.cpp
4 participants