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

pyop3: Block matrix #3519

Draft
wants to merge 3 commits into
base: connorjward/pyop3
Choose a base branch
from
Draft

Conversation

Ig-dolci
Copy link
Contributor

@Ig-dolci Ig-dolci commented Apr 23, 2024

Add block_shape at pyop3.Sparsity and testing for the block matrix type.

@Ig-dolci Ig-dolci changed the title Add function space size. pyop3: Block matrix Apr 24, 2024

A = assemble(a, mat_type="aij")
B = assemble(a, mat_type="baij")
assert A.M.mat.view() == B.M.mat.view()
Copy link
Member

Choose a reason for hiding this comment

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

f = Function(V)
f.interpolate(something)
solve(a==f*v*dx, answer, solver_parameters={'mat_type':'baij'}) 
assert errornorm(f, answer) < eps

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@connorjward connorjward marked this pull request as draft April 29, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants