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

Clean up and document Newton Stokes preconditioner. #2116

Merged
merged 1 commit into from Feb 28, 2018

Conversation

bangerth
Copy link
Contributor

No description provided.

Copy link
Member

@MFraters MFraters left a comment

Choose a reason for hiding this comment

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

Looks good, just one comment about the approximation of J^{uu} when using the defect correction Picard. Personally, I doubt if saying that we approximate J^{uu} in the case of defect correction Picard is the correct way of saying it, since in this case we are specifically not interested in J^{uu}, but we can discuss that later.

+ one_over_eta * this->get_pressure_scaling() * this->get_pressure_scaling()
* (scratch.phi_p[i] * scratch.phi_p[j]))
data.local_matrix(i, j) += (
// top left block: approximate J^{uu}
Copy link
Member

Choose a reason for hiding this comment

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

It might be good the make the distinction between this 'approximation' and the approximation of J^{uu} for the full Newton method. Something like: 'top left block: approximate J^{uu} by A^{uu} when using the defect correction Picard.'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, it's not A^uu. The A^uu block uses the symmetric gradient, but this block here uses the regular gradient.

Copy link
Member

Choose a reason for hiding this comment

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

You are right, so we are basically approximating A^uu

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct.

@bangerth
Copy link
Contributor Author

@MFraters -- updated version now online

Copy link
Member

@MFraters MFraters left a comment

Choose a reason for hiding this comment

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

Just one comment, otherwise looks good!

// top left block: for the current case with
// derivative_scaling_factor==0 the top left block
// of the system matrix only contains the usual
// Stokes term. so approximate this block in the
Copy link
Member

Choose a reason for hiding this comment

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

so->So

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Though we have many comments that start sentences with lower-case letters. For example, the first line of this comment starts with a lower-case letter.

But happy to change -- new version now online.

Copy link
Member

Choose a reason for hiding this comment

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

ah, I didn't notice that, I now see it everywhere... Anyway, not a big issue for me. Will merge it when the testers are done :)

@MFraters MFraters merged commit ab34357 into geodynamics:master Feb 28, 2018
@bangerth bangerth deleted the doc-update branch February 28, 2018 03:39
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.

None yet

2 participants