-
Notifications
You must be signed in to change notification settings - Fork 177
Fieldsplit: update MatNest Jacobian and support bcs on AssembledMatrix #4708
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
base: release
Are you sure you want to change the base?
Conversation
7c9dfcc to
aaabace
Compare
abddfda to
4ab9490
Compare
| if bc_temp is not None: | ||
| bcs.append(bc_temp) | ||
|
|
||
| return AssembledMatrix(form or tuple(args), tuple(bcs), submat) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we know what form is then this should be a Matrix, not an AssembledMatrix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should have a dispatcher mechanism get_matrix that decides which subclass to return
9f34240 to
754750b
Compare
754750b to
0a3fa46
Compare
| elif isinstance(bc, EquationBCSplit): | ||
| row_field, col_field = argument_indices | ||
| bc_temp = bc.reconstruct(field=field, V=V, row_field=row_field, col_field=col_field, use_split=True) | ||
| bc_temp = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| bc_temp = None |
Description
Fixes #4687
Depends on https://gitlab.com/petsc/petsc/-/merge_requests/8860 to trigger preconditioner update for a MatNest with more than one field on a block of the fieldsplit.
Also fixes fieldsplit for
AssembledMatrixwith bcsCleanup
create_subdmindmhooks.py