Skip to content

Add Multilevel additive schwarz (MAS) solver#102

Merged
iiiian merged 6 commits into
mainfrom
mas-only
May 28, 2026
Merged

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

Conversation

@iiiian

@iiiian iiiian commented May 25, 2026

Copy link
Copy Markdown
Contributor

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

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.53%. Comparing base (96a6bd2) to head (4864eca).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #102   +/-   ##
=======================================
  Coverage   80.53%   80.53%           
=======================================
  Files          49       49           
  Lines        2106     2106           
  Branches      281      280    -1     
=======================================
  Hits         1696     1696           
  Misses        410      410           
Flag Coverage Δ
polysolve 80.53% <ø> (ø)

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.

@iiiian iiiian merged commit 56e0edc into main May 28, 2026
9 checks passed
@iiiian iiiian deleted the mas-only branch May 28, 2026 16:57
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.

2 participants