Skip to content

Support Custom Solver Block#1024

Draft
jijn wants to merge 8 commits into
prisms-center:masterfrom
jijn:custom_solver
Draft

Support Custom Solver Block#1024
jijn wants to merge 8 commits into
prisms-center:masterfrom
jijn:custom_solver

Conversation

@jijn

@jijn jijn commented Apr 25, 2026

Copy link
Copy Markdown
Contributor
  • Please check if the PR fulfills these requirements
  • The PR follows our guidelines (formatting & style)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    new feature

  • What is the current behavior? (You can also link to an open issue here)
    Support solve type: Constant, Explicit, Linear, Newton

  • What is the new behavior (if this is a feature change)?
    Add a new solve type: CustomSolver
    This gives users the flexibility to implement their own solver block. As a demonstration, I included an application for the mass-conserved Allen–Cahn equation. Right now, I override solve_level, but we could also use solve. Please let me know what you think and if you have any suggestions.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

  • Other information:
    The result shows that the constraint is correctly imposed::

c_t

@fractalsbyx fractalsbyx marked this pull request as draft April 27, 2026 16:43
@jijn jijn force-pushed the custom_solver branch 2 times, most recently from bb7452a to 6cd854c Compare May 4, 2026 21:48
@jijn jijn force-pushed the custom_solver branch from 6512975 to d2bd2d1 Compare May 7, 2026 21:07
@jijn jijn force-pushed the custom_solver branch from d2bd2d1 to 712314a Compare June 3, 2026 17:01
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