Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
eb883e8a
Commit
eb883e8a
authored
14 years ago
by
Matti Pellika
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
f1705e19
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Geo/MElement.h
+1
-1
1 addition, 1 deletion
Geo/MElement.h
Geo/MVertex.cpp
+6
-0
6 additions, 0 deletions
Geo/MVertex.cpp
Geo/MVertex.h
+5
-0
5 additions, 0 deletions
Geo/MVertex.h
with
12 additions
and
1 deletion
Geo/MElement.h
+
1
−
1
View file @
eb883e8a
...
@@ -288,7 +288,7 @@ class MElement
...
@@ -288,7 +288,7 @@ class MElement
double
integrate
(
double
val
[],
int
pOrder
,
int
stride
=
1
,
int
order
=-
1
);
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
// val[] must contain interpolation data for face/edge vertices of given edge/face
double
integrateCirc
(
double
val
[],
int
edge
,
int
pOrder
,
int
order
=-
1
);
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
// IO routines
virtual
void
writeMSH
(
FILE
*
fp
,
double
version
=
1.0
,
bool
binary
=
false
,
virtual
void
writeMSH
(
FILE
*
fp
,
double
version
=
1.0
,
bool
binary
=
false
,
...
...
This diff is collapsed.
Click to expand it.
Geo/MVertex.cpp
+
6
−
0
View file @
eb883e8a
...
@@ -26,6 +26,12 @@ bool MVertexLessThanLexicographic::operator()(const MVertex *v1, const MVertex *
...
@@ -26,6 +26,12 @@ bool MVertexLessThanLexicographic::operator()(const MVertex *v1, const MVertex *
return
false
;
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
)
double
angle3Vertices
(
MVertex
*
p1
,
MVertex
*
p2
,
MVertex
*
p3
)
{
{
SVector3
a
(
p1
->
x
()
-
p2
->
x
(),
p1
->
y
()
-
p2
->
y
(),
p1
->
z
()
-
p2
->
z
());
SVector3
a
(
p1
->
x
()
-
p2
->
x
(),
p1
->
y
()
-
p2
->
y
(),
p1
->
z
()
-
p2
->
z
());
...
...
This diff is collapsed.
Click to expand it.
Geo/MVertex.h
+
5
−
0
View file @
eb883e8a
...
@@ -23,6 +23,11 @@ class MVertexLessThanLexicographic{
...
@@ -23,6 +23,11 @@ class MVertexLessThanLexicographic{
bool
operator
()(
const
MVertex
*
v1
,
const
MVertex
*
v2
)
const
;
bool
operator
()(
const
MVertex
*
v1
,
const
MVertex
*
v2
)
const
;
};
};
class
MVertexLessThanNum
{
public:
bool
operator
()(
const
MVertex
*
v1
,
const
MVertex
*
v2
)
const
;
};
// A mesh vertex.
// A mesh vertex.
class
MVertex
{
class
MVertex
{
protected:
protected:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment