Skip to content

SLATE: prevent Cofunction reassembly #4377

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

Open
wants to merge 3 commits into
base: release
Choose a base branch
from

Conversation

pbrubeck
Copy link
Contributor

@pbrubeck pbrubeck commented Jun 15, 2025

Description

Here we avoid implicit casting of Cofunctions into SLATE expressions when forming the residual F=a*u-L of a LinearVariationalProblem, as SLATE will always sum the cell contributions into the output vector. Instead, we deal with linear combinations of SLATE expressions and Cofunctions via FormSum, so the Cofunction gets excluded from the sum over elements.

We also extend BaseForm assembly to BaseForm objects with SLATE nodes.

Fixes #4376

@pbrubeck pbrubeck force-pushed the pbrubeck/fix/slate-cofunction branch from f09232d to 1abec01 Compare June 15, 2025 22:03
@pbrubeck pbrubeck force-pushed the pbrubeck/fix/slate-cofunction branch from 0a65da3 to 6e5c84a Compare June 16, 2025 10:37
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