Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/meshgen2d/src/BoundaryElement.cpp
3196 views
1
#include "BoundaryElement.h"
2
3
static int nextTag = 1;
4
5
void BoundaryElement::
6
newTag()
7
{
8
tag = nextTag++;
9
}
10
11
std::ostream& operator<< (std::ostream& o, const BoundaryElement& A)
12
{
13
o << A.tag << ' ' << A.edge << ' ' << A.left << ' ' << A.right;
14
if (A.c != NULL)
15
o << " 203 " << A.a->tag << ' ' << A.b->tag << ' ' << A.c->tag << '\n';
16
else
17
o << " 202 " << A.a->tag << ' ' << A.b->tag << '\n';
18
return o;
19
}
20
21