diff --git a/general/ArgumentParser.cpp b/general/ArgumentParser.cpp index d9490924254dbfe6d32bc163d8e8c76e24c79223..5308fea3bda47087542020e214457ef10edfaafa 100644 --- a/general/ArgumentParser.cpp +++ b/general/ArgumentParser.cpp @@ -666,8 +666,7 @@ bool ArgumentParser::ParseIniFile(const string& inifile) Log->Write("INFO: \tThe instantaneous velocity in the direction of <"+MovementDirection+"> will be calculated over <"+FrameSteps+" frames>" ); } } - - // method A + // Method A TiXmlElement* xMethod_A=xMainNode->FirstChildElement("method_A"); if(xMethod_A) { @@ -916,6 +915,11 @@ bool ArgumentParser::ParseIniFile(const string& inifile) } } Log->Write("INFO: \tFinish parsing inifile"); + if(!(_isMethodA || _isMethodB || _isMethodC || _isMethodD)) + { + Log->Write("WARNING: No measurement method enabled. Nothing to do."); + exit(EXIT_SUCCESS); + } return true; }