New question #665387 on Yade: https://answers.launchpad.net/yade/+question/665387
Hi, I've just updated the source code of yade using git pull and I get this compile error, comming from code added 2 days ago: /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp: In member function ‘void Ip2_JCFpmMat_JCFpmMat_JCFpmPhys::distributeCrossSectionsWeibull(boost::shared_ptr<JCFpmPhys>, Real, Real)’: /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:600:7: error: ‘random_device’ is not a member of ‘std’ std::random_device rd; ^~~~~~~~~~~~~ /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:600:7: note: suggested alternative: ‘random_shuffle’ std::random_device rd; ^~~~~~~~~~~~~ random_shuffle /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:601:7: error: ‘mt19937’ is not a member of ‘std’ std::mt19937 e2(rd()); ^~~~~~~ /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:7: error: ‘weibull_distribution’ is not a member of ‘std’ std::weibull_distribution<Real> weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter); ^~~~~~~~~~~~~~~~~~~~ /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:7: note: suggested alternative: ‘uniform_int_distribution’ std::weibull_distribution<Real> weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter); ^~~~~~~~~~~~~~~~~~~~ uniform_int_distribution /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:32: error: expected primary-expression before ‘>’ token std::weibull_distribution<Real> weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter); ^ /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:34: error: ‘weibullDistribution’ was not declared in this scope std::weibull_distribution<Real> weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter); ^~~~~~~~~~~~~~~~~~~ /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:34: note: suggested alternative: ‘weibullCutOffMin’ std::weibull_distribution<Real> weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter); ^~~~~~~~~~~~~~~~~~~ weibullCutOffMin /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:603:40: error: ‘e2’ was not declared in this scope Real correction = weibullDistribution(e2); ^~ /media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:603:40: note: suggested alternative: ‘R2’ Real correction = weibullDistribution(e2); ^~ R2 -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp