Skip to content
Snippets Groups Projects
Commit 3da41ae2 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[common.convergence-study] fix 21c6f8c

parent 3a858623
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment