Skip to content
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

Cleaner method to get IS in solver #279

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

gthyagi
Copy link
Contributor

@gthyagi gthyagi commented Dec 16, 2024

Replaced the use of the LocalSection method (complex for loop in cython) for obtaining an IS with the CreateSubDM approach (with petsc4py).

@gthyagi gthyagi requested review from lmoresi and julesghub December 16, 2024 03:37
@gthyagi
Copy link
Contributor Author

gthyagi commented Dec 16, 2024

@lmoresi and @julesghub, could you please point me to examples where I can test the current implementation for obtaining the correct IS? Thank you!

@julesghub
Copy link
Member

As discussed a simple 4x2 mesh with velocity, pressure and temperature fields.
Where you could count the indices by hand.
Steady state solve for T.
Stokes solve for v,p. You could even make the RHS of stokes weakly dependent on T.

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