Skip to content

Conversation

@IgorBaratta
Copy link
Member

@IgorBaratta IgorBaratta commented Feb 1, 2024

Based on PR #2517 (by @juliusgh).
Updated PR adding tensor product based elements and mesh.

chrisrichardson and others added 30 commits January 30, 2024 15:27
* add poisson matrix free demo for python

* add matrix-free CG variants using KSP

* add documentation to matrix-free Poisson demo

* Fix typos in C++ demo

* Improve documentation of Python demo

* Fix MPI parallelization, remove variant using NumPy arrays

* Documentation, code cleanup

* Improve documentation

* Adapt according to #2579 (and trigger GitHub actions again)

* Call  only once for the action

* Replace some ghostUpdate calls with scatter_forward

---------

Co-authored-by: Igor Baratta <igorbaratta@gmail.com>
Co-authored-by: Garth N. Wells <gnw20@cam.ac.uk>
@chrisrichardson
Copy link
Contributor

It turned out there were quite a lot of fixes needed to the documentation for this... but now I think is pretty good.

@nate-sime
Copy link
Contributor

Just a couple of typos and things that I've spotted. Will push soon.


# This matrix-free solver is now used to compute the finite element solution.
# The finite element solution's approximation error as compared with the
# exact solution is measured in the $L_2$-norm.
Copy link
Contributor

Choose a reason for hiding this comment

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

The solution selected here is actually exactly represented in the FE space chosen. What we're measuring is the iterative solver error as propagated to the FE solution in the L2 norm. If we chose u_D to be something not in $P^3$ then we'd have a combination of the two. Perhaps this should be distinguished?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, I think we should use something not in $P^3$.

@chrisrichardson chrisrichardson added the demo New demo or demo enhancements/improvements label Feb 15, 2024
@IgorBaratta IgorBaratta added this pull request to the merge queue Feb 15, 2024
Merged via the queue into main with commit 818de2a Feb 15, 2024
@IgorBaratta IgorBaratta deleted the igor/matrix-free-demo branch February 15, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

demo New demo or demo enhancements/improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add matrix-free solver demos

6 participants