From e46233799c25067188549528947ae980579a5e8c Mon Sep 17 00:00:00 2001 From: Alex Schmidt Date: Fri, 24 May 2013 15:42:19 +0200 Subject: [PATCH] ... --- o815/o815.cpp | 2 ++ o815/o815.h | 1 + paraq.cpp | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/o815/o815.cpp b/o815/o815.cpp index 8700f67..ff0b1ae 100644 --- a/o815/o815.cpp +++ b/o815/o815.cpp @@ -125,6 +125,8 @@ void o815::mainLoop() { for (vector::iterator parait = paraQ->allParaIds.begin(); parait != paraQ->allParaIds.end(); ++parait) *out->log << *parait << "=" << (*paraQ)[*parait] << " "; *out->log << ">" << endl << flush; + + Sim->_newParas(); progress measProg(comargs.nmeas); diff --git a/o815/o815.h b/o815/o815.h index 91fc747..1b94170 100644 --- a/o815/o815.h +++ b/o815/o815.h @@ -45,6 +45,7 @@ class o815 { void nextConfig(); bool toEquilibrate; char *confMem; + virtual void _newParas() {}; private: virtual void _reset()=0; virtual void _makeSweep(int nsweep)=0; diff --git a/paraq.cpp b/paraq.cpp index ac8fc14..87ec773 100644 --- a/paraq.cpp +++ b/paraq.cpp @@ -114,7 +114,8 @@ double& paraq::operator[] (string paraid) { return defaultPara[paraid]; } - return masterdefault; + cerr << "PARAQ: Parameter " << paraid << " does not exist!" << endl << flush; + exit(1); } int paraq::getTotalJobs() { -- 2.39.5