From 3da41ae27cbd82043396479a9b23ef822207402a Mon Sep 17 00:00:00 2001
From: Felix Schindler <felix.schindler@wwu.de>
Date: Thu, 21 Aug 2014 16:42:00 +0200
Subject: [PATCH] [common.convergence-study] fix 21c6f8c

---
 dune/stuff/common/convergence-study.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dune/stuff/common/convergence-study.cc b/dune/stuff/common/convergence-study.cc
index b6b6df76a..c7e2f8e73 100644
--- a/dune/stuff/common/convergence-study.cc
+++ b/dune/stuff/common/convergence-study.cc
@@ -5,6 +5,8 @@
 
 #include "config.h"
 
+#include <algorithm>
+
 #include <dune/stuff/common/exceptions.hh>
 #include <dune/stuff/common/string.hh>
 #include <dune/stuff/common/color.hh>
@@ -27,7 +29,8 @@ std::map<std::string, std::vector<double>> ConvergenceStudy::run(const bool rela
     DUNE_THROW(Dune::InvalidStateException, "You have to provide at least one norm!");
   std::vector<std::string> used_norms;
   for (auto norm : provided_norms())
-    if (std::find(only_use_this_norms_.begin(), only_use_this_norms_.end(), norm) != only_use_this_norms_.end())
+    if (only_use_this_norms_.empty()
+        || std::find(only_use_this_norms_.begin(), only_use_this_norms_.end(), norm) != only_use_this_norms_.end())
       used_norms.push_back(norm);
   if (used_norms.size() == 0)
     DUNE_THROW(Dune::InvalidStateException,
-- 
GitLab