24 #include <boost/property_tree/ptree.hpp>
40 array<double, 3> ret_val {{1.0, 1.0, 1.0}};
42 if (cell->GetChemicals().size() >= 4) {
43 const double x0 = cell->GetChemical(0);
44 const double x1 = cell->GetChemical(1);
45 const double x3 = cell->GetChemical(3);
46 if ((fpclassify(x0) == FP_NAN) || (x0 < 0.0)) {
47 throw runtime_error(
"Meinhardt::CellColor> Numerical instability !");
49 ret_val = {{x1/(1.0+x1), x0/(1.0+x0), x3/(1.0+x3)}};
A cell contains walls and nodes.
CellColor::Meinhardt header file.
Meinhardt(const boost::property_tree::ptree &pt)
Straight initialization.
Namespace for components of the Default model group.
std::array< double, 3 > operator()(SimPT_Sim::Cell *cell)
Return colr value.