From 2729c13e0d717bb9e3691f7597f2efd21cf83a5d Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Thu, 3 Nov 2011 16:08:49 +0100
Subject: [PATCH] Move energyNorm

---
 src/one-body-sample.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 4ccaa3ca..924be599 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -160,6 +160,7 @@ int main() {
     OperatorType stiffnessMatrix;
     OperatorAssembler<P1Basis, P1Basis>(p1Basis, p1Basis)
         .assemble(localStiffness, stiffnessMatrix);
+    EnergyNorm<OperatorType, VectorType> energyNorm(stiffnessMatrix);
 
     Dune::BitSetVector<dim> ignoreNodes(grid.size(grid.maxLevel(), dim), false);
     Dune::BitSetVector<1> neumannNodes(grid.size(grid.maxLevel(), dim), false);
@@ -198,7 +199,6 @@ int main() {
         coefficientOfFriction, normalStress, nodalIntegrals);
     // }}}
 
-    EnergyNorm<OperatorType, VectorType> energyNorm(stiffnessMatrix);
     {
       typedef MyConvexProblem<OperatorType, VectorType, Dune::LinearFunction>
       MyConvexProblemType;
-- 
GitLab