diff --git a/src/wallbase.cpp b/src/wallbase.cpp --- a/src/wallbase.cpp +++ b/src/wallbase.cpp @@ -78,7 +78,6 @@ WallBase::WallBase(Node *sn1, Node *sn2, apoplast = new double[CellBase::NChem()]; // not yet in use. - //length = 0; SetLength(); // to visualize flux through WallBase @@ -170,10 +169,6 @@ bool WallBase::SAM_P(void) { #include -/* double WallBase::Length(void){ - return (*n2 - *n1).Norm(); - }*/ - void WallBase::SetLength(void) { //static bool show_nodes = true; @@ -203,11 +198,6 @@ void WallBase::SetLength(void) { n!=second_node_edge_plus_1; (++n == c1->nodes.end()) ? (n=c1->nodes.begin()):n ) { - /* if (n==c1->nodes.end()) { - - n=c1->nodes.begin(); // wrap around - }*/ - list::const_iterator prev_n = n; if (prev_n==c1->nodes.begin()) prev_n=c1->nodes.end(); --prev_n; @@ -222,25 +212,12 @@ void WallBase::SetLength(void) { length += (*(*prev_n) - *(*n)).Norm(); } - - /* if (length > 100) { - ostringstream warn; - warn << "Strange, length is " << length << "...: " << deb_str.str() << endl; - warn << "Strangeness in WallBase: " << *this << endl << endl << deb_str.str() << endl; - MyWarning::warning (warn.str().c_str()); - }*/ - - //cerr << deb_str .str() << ", length is " << length << endl; - //of << length << " " << ((*n2)-(*n1)).Norm() << endl; - - } void WallBase::CorrectTransporters(double orig_length) { double length_factor = length / orig_length; - // cerr << "[ lf = " << length_factor << "]"; - //cerr << "Correcting amount of transporters on WallBase " << *this << ", length factor is " << orig_length << " / " << length << endl; + for (int ch=0;ch=0. && ua <=1.) return true; @@ -309,5 +274,3 @@ bool WallBase::IntersectsWithDivisionPla } - -