diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 7997cb11eef5eeec58565e6f98f07d4c16c278e1..9d89fe7e770e78a90ed033fd0911fe5f181b2927 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -376,7 +376,8 @@ int main(int argc, char *argv[]) { u4 += u4_diff; - { // Compute von Mises stress and write everything to a file + // Compute von Mises stress and write everything to a file + if (parset.get<bool>("writeVTK")) { auto const displacement = Dune::make_shared<BasisGridFunction<P1Basis, VectorType> const>( p1Basis, u4); diff --git a/src/one-body-sample.parset b/src/one-body-sample.parset index 7b07d06886fcf9af6c1c8b2ba0a97cea27c8f2a3..f3b9b6174f4d4ff975af6ac06842a8999dd19166 100644 --- a/src/one-body-sample.parset +++ b/src/one-body-sample.parset @@ -6,6 +6,8 @@ printFrictionalBoundary = false printProgress = true printDifference = false +writeVTK = false + [grid] refinements = 3