Skip to content

State-dependent custom operators for block preconditioning - #1649

Open
tlroy wants to merge 6 commits into
developfrom
roy/state-dependent-custom-schur
Open

State-dependent custom operators for block preconditioning#1649
tlroy wants to merge 6 commits into
developfrom
roy/state-dependent-custom-schur

Conversation

@tlroy

@tlroy tlroy commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Adds state-dependent custom Schur complement approximations for block preconditioners.

Users can provide a custom Schur operator directly, or define one from a weak form whose coefficients depend on the current nonlinear solution. Before each Newton linearization, the preconditioner rebuilds that operator using the latest block state, then uses it for the Schur solve. The PR also adds the weak-form helper API and tests for fixed and state-dependent custom Schur approximations.

@tlroy
tlroy force-pushed the roy/state-dependent-custom-schur branch from fff47df to e911c14 Compare August 19, 2026 19:59

mfem::Vector block_view;
block_view.MakeRef(const_cast<mfem::Vector&>(state), block_begin, block_size);
*field.get() = block_view;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Directly updating the FiniteElementState within a FieldState is a bit scary because the
FieldState is tracked on the graph, so this could potentially make the graph invalid; perhaps
a scratch FiniteElementState could be used instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok I made a change so that the weak-form block operator assembles from temporary copies of the input fields, rather than overwriting FieldStates.

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