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

Change output format

Dots for progress. Table at the end.
parent 0f9bf487
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,9 @@ int main() {
leafView, p1Basis, frictionalNodes, nodalIntegrals);
for (size_t run = 1; run <= runs; ++run) {
std::cout << "Run: " << run << std::endl;
std::cout << ".";
std::cout.flush();
// b = neumann
assemble_neumann<GridType, GridType::LeafGridView, SmallVector, P1Basis>(
leafView, p1Basis, neumannNodes, b1, run);
......@@ -271,11 +273,20 @@ int main() {
solver.solve();
}
}
std::cout << std::endl;
VectorType diff = u2;
diff -= u1;
std::cout << "Infinity norm of the difference of the two solutions: "
<< diff.infinity_norm() << std::endl;
// Print displacement on frictional boundary
for (size_t i = 0; i < frictionalNodes.size(); ++i)
if (frictionalNodes[i][0])
std::cout << boost::format("u1[%02d] = %+3e, %|40t|u2[%02d] = %+3e, "
" s[%02d] = %+3e") %
i % u1[i] % i % u2[i] % i %
vonMisesStress[i] << std::endl;
}
catch (Dune::Exception &e) {
Dune::derr << "Dune reported error: " << e << std::endl;
......
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