SundanceRivaraNode.cpp
Go to the documentation of this file.
00001 #include "SundanceRivaraNode.hpp"
00002 #include "SundanceRivaraElement.hpp"
00003 #include "SundanceRivaraEdge.hpp"
00004 #include "SundanceRivaraMesh.hpp"
00005 
00006 using namespace Sundance;
00007 using namespace Sundance::Rivara;
00008 using namespace Sundance;
00009 
00010 Node::Node(int globalIndex, const Point& x, int ownerProc, int label)
00011   : label_(label), localIndex_(-1), globalIndex_(globalIndex), 
00012     x_(x), elements_(), edges_(), ownerProc_(ownerProc)
00013 {}
00014 
00015 void Node::addConnectingElement(Element* tri)
00016 {
00017   elements_.append(tri);
00018 }
00019 
00020 void Node::addConnectingEdge(Edge* edge)
00021 {
00022   edges_.append(edge);
00023 }
00024 
00025 const Point& Node::pt() const {return x_;}
00026 

Site Contact