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

Use gmres in step 12 #16058

Merged
merged 6 commits into from Oct 13, 2023
Merged

Conversation

nils-schween
Copy link
Contributor

@nils-schween nils-schween commented Sep 28, 2023

This pull request addresses #15984.
Use GMRES instead of a Richardson solver in Step-12. Adapt the tutorial where necessary and fix a small error in the introduction of the tutorial.

A short comment concerning the error in the introduction: Two different scalar products are used:

  1. $$( \mathbf{v}, \mathbf{w} )_T = \int_T \mathbf{v} \cdot \mathbf{w} $$
  2. $$\langle f, g \rangle_F = \int_F fg$$

The first one is for vector quantities and the second one for scalar quantities. In the discrete weak form a scalar is "dotted" with a vector. The meaning of this is unclear to me. So I replaced $(\nabla \phi_i, \mathbf{\beta} \cdot \phi_j)_T$ with $(\nabla \phi_i, \mathbf{\beta}\phi_i)_T$. The dot product is implicit in the definition of the scalar product, which admittedly is not explicitly given in the introduction.

examples/step-12/doc/intro.dox Show resolved Hide resolved
examples/step-12/step-12.cc Outdated Show resolved Hide resolved
examples/step-12/step-12.cc Outdated Show resolved Hide resolved
examples/step-12/step-12.cc Outdated Show resolved Hide resolved
examples/step-12/step-12.cc Outdated Show resolved Hide resolved
examples/step-12/step-12.cc Outdated Show resolved Hide resolved
Co-authored-by: Wolfgang Bangerth <bangerth@colostate.edu>
Copy link
Member

@kronbichler kronbichler left a comment

Choose a reason for hiding this comment

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

Thank you @nils-schween!

@kronbichler
Copy link
Member

/rebuild

@kronbichler kronbichler dismissed bangerth’s stale review October 13, 2023 18:33

Comments were addressed. Let us merge now.

@kronbichler kronbichler merged commit bf2c57c into dealii:master Oct 13, 2023
15 checks passed
@kronbichler
Copy link
Member

Thank you for the contribution @nils-schween!

@nils-schween
Copy link
Contributor Author

Thank you for the support and the advise to open this PR! I will close the related issue.

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

Successfully merging this pull request may close these issues.

None yet

3 participants