Skip to content
Snippets Groups Projects
Commit 4944b927 authored by Laura Stengel's avatar Laura Stengel
Browse files

changed start of using extrapolation

parent 29f92ab5
No related tags found
No related merge requests found
Pipeline #414208 passed
......@@ -33,7 +33,7 @@ bool IterativePressureSolver::Method(IElasticity &assemble, Vector &u) {
while (!iteration.IsFinished()) {
int n = iteration.Step();
if (n > 1) {
if (n > 0) {
uOld = uNew; // u^{n-1}
}
......@@ -55,8 +55,8 @@ bool IterativePressureSolver::Method(IElasticity &assemble, Vector &u) {
return Method(assemble, u);
return false;
}
// Extrapolation ab n = 2
if (useExtrapolation && n >= 2) {
// Extrapolation ab n = 1
if (useExtrapolation && n >= 1) {
deltaU = uNew - uOld;
uNew += dampingExtrapolation * deltaU;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment