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

Adding Python Example for PETSc Bake-Off Problem #1774

Open
tylercollins5737 opened this issue Mar 12, 2025 · 3 comments
Open

Adding Python Example for PETSc Bake-Off Problem #1774

tylercollins5737 opened this issue Mar 12, 2025 · 3 comments

Comments

@tylercollins5737
Copy link

Hello libCEED Team,

I noticed an open issue #1763 and I'm also interested in adding to the library of python examples, specifically starting with the first PETSc bake-off problem. It was mentioned that some advanced methods might not be available but could be added. Should I just go for it and report any missing or needed methods?

Appreciate your time and any suggestions!

Cheers,
Tyler

@jedbrown
Copy link
Member

Yup, go ahead and get started. You'll probably use petsc4py for generating the mesh and handling the solver, with libceed for applying the operator. You may need to look at the petsc4py examples at least as much as libceed examples to see how to implement things like matrix-free operators (which will call ceed.Operator.apply).

Let us know if you get stuck. It's usually best to create a draft PR with your work along the way so you have a place to ask questions where we'll see it in context.

@jeremylt
Copy link
Member

I thought #1763 was about that particular person offering to make more Python examples? Worth clarifying in that issue

@tylercollins5737
Copy link
Author

Yup, go ahead and get started. You'll probably use petsc4py for generating the mesh and handling the solver, with libceed for applying the operator. You may need to look at the petsc4py examples at least as much as libceed examples to see how to implement things like matrix-free operators (which will call ceed.Operator.apply).

Let us know if you get stuck. It's usually best to create a draft PR with your work along the way so you have a place to ask questions where we'll see it in context.

Sounds good and thank you for the tips!

I thought #1763 was about that particular person offering to make more Python examples? Worth clarifying in that issue

That was a good point, and I got clarification so we aren't overlapping in our efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants