70 std::set<unsigned> shared_elements;
71 std::set_intersection(elements_containing_nodeA.begin(),
72 elements_containing_nodeA.end(),
73 elements_containing_nodeB.begin(),
74 elements_containing_nodeB.end(),
75 std::inserter(shared_elements, shared_elements.begin()));
78 assert(!shared_elements.empty());
82 double line_tension_parameter_in_calculation = this->mLineTensionParameter/2.0;
85 if (shared_elements.size() == 1)
87 line_tension_parameter_in_calculation = this->mBoundaryLineTensionParameter;
92 double theta = atan2(fabs(vector(1)), fabs(vector(0)));
94 if ((theta > 0.25*M_PI) && (theta < 0.75*M_PI))
96 line_tension_parameter_in_calculation *= mPlanarPolarisedLineTensionMultiplier;
99 return line_tension_parameter_in_calculation;