From 69f28d0e0d984db614368cb68ba50e108a229715 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Thu, 3 Nov 2011 14:40:51 +0100
Subject: [PATCH] Whitespace / comments / move block

---
 src/one-body-sample.cc | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 2538ccc5..46b763bc 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -207,26 +207,26 @@ int main() {
     assemble_neumann<GridType, GridType::LeafGridView, SmallVector, P1Basis>(
         grid.leafView(), p1Basis, neumannNodes, f);
 
-    {
-      std::vector<Dune::FieldVector<double, 1>> nodalIntegrals;
-      assemble_frictional<GridType, GridType::LeafGridView, SmallVector,
-                          P1Basis>(grid.leafView(), p1Basis, frictionalNodes,
-                                   nodalIntegrals);
+    // {{{ Assemble terms for the nonlinearity
+    std::vector<Dune::FieldVector<double, 1>> nodalIntegrals;
+    assemble_frictional<GridType, GridType::LeafGridView, SmallVector, P1Basis>(
+        grid.leafView(), p1Basis, frictionalNodes, nodalIntegrals);
 
-      // TODO: populate on S_F
-      std::vector<double> normalStress;
-      normalStress.resize(grid.size(grid.maxLevel(), dim));
-      std::fill(normalStress.begin(), normalStress.end(), 0.0);
+    // TODO: populate on S_F
+    std::vector<double> normalStress;
+    normalStress.resize(grid.size(grid.maxLevel(), dim));
+    std::fill(normalStress.begin(), normalStress.end(), 0.0);
 
-      // TODO: populate on S_F
-      std::vector<double> coefficientOfFriction;
-      coefficientOfFriction.resize(grid.size(grid.maxLevel(), dim));
-      std::fill(coefficientOfFriction.begin(), coefficientOfFriction.end(),
-                0.0);
+    // TODO: populate on S_F
+    std::vector<double> coefficientOfFriction;
+    coefficientOfFriction.resize(grid.size(grid.maxLevel(), dim));
+    std::fill(coefficientOfFriction.begin(), coefficientOfFriction.end(), 0.0);
 
-      Dune::GlobalNonlinearity<dim, Dune::LinearFunction> myGlobalNonlinearity(
-          coefficientOfFriction, normalStress, nodalIntegrals);
+    Dune::GlobalNonlinearity<dim, Dune::LinearFunction> myGlobalNonlinearity(
+        coefficientOfFriction, normalStress, nodalIntegrals);
+    // }}}
 
+    {
       typedef MyConvexProblem<OperatorType, VectorType, Dune::LinearFunction>
       MyConvexProblemType;
 
-- 
GitLab