Skip to content
Snippets Groups Projects
Commit eb883e8a authored by Matti Pellika's avatar Matti Pellika
Browse files

No commit message

No commit message
parent f1705e19
No related branches found
No related tags found
No related merge requests found
......@@ -288,7 +288,7 @@ class MElement
double integrate(double val[], int pOrder, int stride=1, int order=-1);
// val[] must contain interpolation data for face/edge vertices of given edge/face
double integrateCirc(double val[], int edge, int pOrder, int order=-1);
virtual double integrateFlux(double val[], int face, int pOrder, int order=-1);
double integrateFlux(double val[], int face, int pOrder, int order=-1);
// IO routines
virtual void writeMSH(FILE *fp, double version=1.0, bool binary=false,
......
......@@ -26,6 +26,12 @@ bool MVertexLessThanLexicographic::operator()(const MVertex *v1, const MVertex *
return false;
}
bool MVertexLessThanNum::operator()(const MVertex *v1, const MVertex *v2) const
{
if(v1->getNum() < v2->getNum()) return true;
return false;
}
double angle3Vertices(MVertex *p1, MVertex *p2, MVertex *p3)
{
SVector3 a(p1->x() - p2->x(), p1->y() - p2->y(), p1->z() - p2->z());
......
......@@ -23,6 +23,11 @@ class MVertexLessThanLexicographic{
bool operator()(const MVertex *v1, const MVertex *v2) const;
};
class MVertexLessThanNum{
public:
bool operator()(const MVertex *v1, const MVertex *v2) const;
};
// A mesh vertex.
class MVertex{
protected:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment