currently the function numbers need to be consecutive for the DKS version. This is now enforced.
This commit is contained in:
parent
f4d6f63607
commit
37658e177b
@ -116,6 +116,18 @@ Bool_t PFunctionHandler::DoParse()
|
||||
}
|
||||
}
|
||||
|
||||
// for DKS, functions must be numbered consecutive
|
||||
if (success) {
|
||||
for (UInt_t i=0; i<fFuncs.size(); i++) {
|
||||
if (fFuncs[i].GetFuncNo() != i+1) {
|
||||
std::cerr << std::endl << "**ERROR**: for DKS, the function numbers need to be consecutive, sorry.";
|
||||
std::cerr << std::endl;
|
||||
success = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user