Skip to content
Snippets Groups Projects
Commit eae834de authored by Bertram Kopf's avatar Bertram Kopf
Browse files

bug fix for optimization mode with Geneva in pbarpToOmegaPiLS

parent e42b80ad
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,11 @@ namespace Gem
double result = 0.;
OmegaPiDataLS::fitParamVal theFitParmValTmp;
assert(getFitParams(theFitParmValTmp));
bool fitParamsSet=getFitParams(theFitParmValTmp);
if (!fitParamsSet){
std::cout << "fit parameters could not set properly " << std::endl;
exit(0);
}
result=_omegaPiLhPtr->calcLogLh(theFitParmValTmp);
// std::cout << "**** current fit params ***** " << std::endl;
// printFitParams(theFitParmValTmp);
......
......@@ -501,7 +501,15 @@ bl::tribool GenEvA(
//----------------------------------------------------------------------------------------------
boost::shared_ptr<gp::GOmegaPiIndividualLS> bestIndividual_ptr=pop_ptr->getBestIndividual<gp::GOmegaPiIndividualLS>();
assert(bestIndividual_ptr->getFitParams(fitParm));
bool fitParamsSet=bestIndividual_ptr->getFitParams(fitParm);
if (!fitParamsSet){
std::cout << "fit parameters could not set properly " << std::endl;
exit(0);
}
omegaPiLh=bestIndividual_ptr->omegaPiLhPtr();
Info << "GenEvA done.\n" << endmsg;
......
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