diff --git a/src/compute-disc-error.cc b/src/compute-disc-error.cc
index 52bd8faf1070e145f1af732854f7e4dec9492c48..97cabf4093320723277103a98e7a3bd3fc21e26c 100644
--- a/src/compute-disc-error.cc
+++ b/src/compute-disc-error.cc
@@ -394,6 +394,7 @@ void measureDiscreteEOC(const GridView gridView,
       h1ErrorSquared += integrationElement * qp.weight() * derDiff.frobenius_norm2();
 
     }
+  }
 
   std::cout << "levels: " << gridView.grid().maxLevel()+1
             << "      "
@@ -402,7 +403,6 @@ void measureDiscreteEOC(const GridView gridView,
             << "h^1 error: " << std::sqrt(h1ErrorSquared)
             << std::endl;
   }
-  }
 }
 
 template <class GridView, int order, class TargetSpace>