Commit 1415004c authored by Lukas Weber's avatar Lukas Weber
Browse files

error checking in measurements

parent b58ee0b6
......@@ -85,9 +85,9 @@ void measurements :: add_evalable(std::string name, std::vector<std::string>& n,
if (eo.find(n[i]) == eo.end()) {
stringstream s;
s << "No observable with name " << n[i];
throw s.str();
throw std::runtime_error(s.str());
}
v.push_back(obs_v[eo[n[i]]]);
v.push_back(obs_v[eo.at(n[i])]);
}
e->jackknife(v,f);
eva_v.push_back(e);
......@@ -299,7 +299,7 @@ void measurements :: add_evalable(std::string name, std::vector<std::string>& n,
if (eo.find(n[i]) == eo.end()) {
stringstream s;
s << "No observable with name " << n[i];
throw s.str();
throw std::runtime_error(s.str());
}
v.push_back(obs_v[eo[n[i]]]);
}
......
......@@ -13,6 +13,7 @@
using namespace std;
int merge(function<mc* (string&)> mccreator, int argc, char* argv[]) {
MPI_Init(&argc,&argv);
if (argc==1) {
cout << " usage: "<< argv[0] <<" jobfilename [-s number_of_bins_to_be_skipped] [-t min_task max_task] [-r min_run max_run]" << endl;
exit(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment