Skip to content
Snippets Groups Projects
Commit 60565fcd authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

[Cleanup] Rename: velocityEnergyNorm -> AMNorm

parent 7bd5e2fa
No related branches found
No related tags found
No related merge requests found
...@@ -329,7 +329,7 @@ int main(int argc, char *argv[]) { ...@@ -329,7 +329,7 @@ int main(int argc, char *argv[]) {
frictionalBoundaryMassMatrix); frictionalBoundaryMassMatrix);
} }
// Q: Does it make sense to weigh them in this manner? // Q: Does it make sense to weigh them in this manner?
SumNorm<VectorType> const velocityEnergyNorm(1.0, ANorm, 1.0, MNorm); SumNorm<VectorType> const AMNorm(1.0, ANorm, 1.0, MNorm);
auto const nodalIntegrals = assemble_frictional<GridView, SmallVector>( auto const nodalIntegrals = assemble_frictional<GridView, SmallVector>(
leafView, p1Assembler, frictionalNodes); leafView, p1Assembler, frictionalNodes);
...@@ -458,8 +458,7 @@ int main(int argc, char *argv[]) { ...@@ -458,8 +458,7 @@ int main(int argc, char *argv[]) {
LoopSolver<VectorType> velocityProblemSolver( LoopSolver<VectorType> velocityProblemSolver(
multigridStep, parset.get<size_t>("solver.tnnmg.maxiterations"), multigridStep, parset.get<size_t>("solver.tnnmg.maxiterations"),
solverTolerance, &velocityEnergyNorm, verbosity, solverTolerance, &AMNorm, verbosity, false); // absolute error
false); // absolute error
size_t iterationCounter; size_t iterationCounter;
auto solveVelocityProblem = [&](VectorType &_problem_iterate, auto solveVelocityProblem = [&](VectorType &_problem_iterate,
...@@ -511,7 +510,7 @@ int main(int argc, char *argv[]) { ...@@ -511,7 +510,7 @@ int main(int argc, char *argv[]) {
(std::cerr << '.').flush(); (std::cerr << '.').flush();
if (state_fpi > 1) { if (state_fpi > 1) {
double const correctionNorm = velocityEnergyNorm.diff(u_saved, u); double const correctionNorm = AMNorm.diff(u_saved, u);
if (correctionNorm < fixedPointTolerance) { if (correctionNorm < fixedPointTolerance) {
if (printProgress) if (printProgress)
(std::cerr << '#').flush(); (std::cerr << '#').flush();
......
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