Skip to content
Snippets Groups Projects
Commit 6341f2ce authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

prepare errmsg from INode.cpp

parent 56c1e52d
No related branches found
No related tags found
1 merge request!591Convert from dynamic (nodeMeta) to hard-coded (parDefs) parameter info
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "Fit/Param/RealLimits.h" #include "Fit/Param/RealLimits.h"
#include <algorithm> #include <algorithm>
#include <utility> #include <utility>
#include <iostream>
INode::INode(std::vector<double> PValues) : m_P(std::move(PValues)) {} INode::INode(std::vector<double> PValues) : m_P(std::move(PValues)) {}
...@@ -28,6 +29,13 @@ INode::INode(const NodeMeta& meta, std::vector<double> PValues) ...@@ -28,6 +29,13 @@ INode::INode(const NodeMeta& meta, std::vector<double> PValues)
void INode::checkNodeArgs() const void INode::checkNodeArgs() const
{ {
size_t nP = m_P.size(); size_t nP = m_P.size();
if (parDefs().size() != nP) {
std::cerr << "#m_P = " << nP << std::endl;
std::cerr << "#PDf = " << parDefs().size() << std::endl;
for (const ParaMeta& pm: parDefs())
std::cerr << " PDf: " << pm.name << std::endl;
ASSERT(0);
}
ASSERT(parDefs().size() == nP); ASSERT(parDefs().size() == nP);
for (size_t i = 0; i < nP; ++i) { for (size_t i = 0; i < nP; ++i) {
const ParaMeta pm = parDefs()[i]; const ParaMeta pm = parDefs()[i];
......
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