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

feat: mgr strategy for lagrangeContactBubbleStabilization #3492

Merged
merged 8 commits into from
Jan 22, 2025

Conversation

CusiniM
Copy link
Collaborator

@CusiniM CusiniM commented Dec 14, 2024

Adds and MGR strategy for the saddle point system of: lagrangeContactBubbleStabilization.

@CusiniM CusiniM marked this pull request as ready for review December 14, 2024 00:44
CusiniM and others added 2 commits December 14, 2024 14:09
…s/LagrangianContactMechanicsBubbleStabilization.hpp

Co-authored-by: Nicola Castelletto <[email protected]>
@CusiniM CusiniM self-assigned this Jan 7, 2025
@CusiniM CusiniM added flag: no rebaseline Does not require rebaseline flag: ready for review labels Jan 7, 2025
Comment on lines 277 to 297
void setILUCoarseSolver( HyprePrecWrapper & solver )
{
/* (Required) Create ILU solver */
HYPRE_ILUCreate(&solver.ptr);

/* (Recommended) General solver options */
int const ilu_type = 0; /* 0, 1, 10, 11, 20, 21, 30, 31, 40, 41, 50 */
int const max_iter = 1;
double const tol = 0.0;
int const reordering = 0; /* 0: none, 1: RCM */
int const print_level = 0;
HYPRE_ILUSetType(solver.ptr, ilu_type);
HYPRE_ILUSetMaxIter(solver.ptr, max_iter);
HYPRE_ILUSetTol(solver.ptr, tol);
HYPRE_ILUSetLocalReordering(solver.ptr, reordering);
HYPRE_ILUSetPrintLevel(solver.ptr, print_level);

solver.setup = HYPRE_ILUSetup;
solver.solve = HYPRE_ILUSolve;
solver.destroy = HYPRE_ILUDestroy;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we could remove this. Unless we want it as an example of how to set a different coarse solver.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's keep it

setupLabels();

// Level 0
m_levelFRelaxType[0] = MGRFRelaxationType::l1jacobi;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should investigate with @victorapm the blockJacobi option at some point. Not needed in this PR.

m_levelGlobalSmootherType[0] = MGRGlobalSmootherType::none;

// Level 1
m_levelFRelaxType[1] = MGRFRelaxationType::l1jacobi;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

Copy link
Contributor

@castelletto1 castelletto1 left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

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

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.

Project coverage is 56.85%. Comparing base (0ad432d) to head (5816e64).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
.../LagrangianContactMechanicsBubbleStabilization.hpp 0.00% 22 Missing ⚠️
...ontact/SolidMechanicsLagrangeContactBubbleStab.cpp 0.00% 4 Missing ⚠️
...onents/linearAlgebra/interfaces/hypre/HypreMGR.cpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3492      +/-   ##
===========================================
- Coverage    56.87%   56.85%   -0.02%     
===========================================
  Files         1157     1158       +1     
  Lines       101244   101273      +29     
===========================================
  Hits         57580    57580              
- Misses       43664    43693      +29     

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

@CusiniM CusiniM merged commit 17053bb into develop Jan 22, 2025
23 of 25 checks passed
@CusiniM CusiniM deleted the feature/cusini/mgrStrategyForLagrangeContactBubble branch January 22, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci: run code coverage enables running of the code coverage CI jobs 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants