Skip to content

Add Multilevel additive schwarz (MAS) solver#102

Open
iiiian wants to merge 6 commits into
mainfrom
mas-only
Open

Add Multilevel additive schwarz (MAS) solver#102
iiiian wants to merge 6 commits into
mainfrom
mas-only

Conversation

@iiiian
Copy link
Copy Markdown
Contributor

@iiiian iiiian commented May 25, 2026

Changes

  • Implement MAS solver
  • Fix cuda setup
    • Fix cuda cmake
    • Fix AMGCL diagnostic flag pollution
    • Fix cuSolver namespace

Compile

To enable cuda, use -DPOLYSOLVE_WITH_CUDA=ON. Only cuda 13+ is supported.

Example config

Minimal

{
    "solver": "MAS",
    "MAS": {
        "absolute_tolerance": 1e-8,
        "relative_tolerance": 1e-5,
        "block_dim": 1 // 1 for scalar problem, 2 for 3D, 3 for 3D.
    }
}

Full

{
    "solver": "MAS",
    "MAS": {
        "absolute_tolerance": 1e-8,
        "relative_tolerance": 1e-5,
        "block_dim": 1, // 1 for scalar problem, 2 for 3D, 3 for 3D.
        "lazy_partitioning": true, // reuse graph partition across newton steps
        "max_iter": 5000,
        "use_preconditioned_residual_norm": false // use preconditioned norm in convergence check.
    }
}

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.52%. Comparing base (33bea3f) to head (b388b53).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #102   +/-   ##
=======================================
  Coverage   80.52%   80.52%           
=======================================
  Files          49       49           
  Lines        2121     2121           
  Branches      284      284           
=======================================
  Hits         1708     1708           
  Misses        413      413           
Flag Coverage Δ
polysolve 80.52% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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