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
25cd3ff0
Commit
25cd3ff0
authored
13 years ago
by
Matti Pellika
Browse files
Options
Downloads
Patches
Plain Diff
prettier
parent
629fd5fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/Cell.cpp
+5
-12
5 additions, 12 deletions
Geo/Cell.cpp
Geo/Cell.h
+0
-6
0 additions, 6 deletions
Geo/Cell.h
with
5 additions
and
18 deletions
Geo/Cell.cpp
+
5
−
12
View file @
25cd3ff0
...
@@ -29,12 +29,6 @@ bool Less_Cell::operator()(const Cell* c1, const Cell* c2) const
...
@@ -29,12 +29,6 @@ bool Less_Cell::operator()(const Cell* c1, const Cell* c2) const
return
false
;
return
false
;
}
}
bool
Less_VertexNumIndex
::
operator
()(
const
std
::
pair
<
MVertex
*
,
int
>
v1
,
const
std
::
pair
<
MVertex
*
,
int
>
v2
)
const
{
return
(
v1
.
first
->
getNum
()
<
v2
.
first
->
getNum
());
}
int
Cell
::
_globalNum
=
0
;
int
Cell
::
_globalNum
=
0
;
Cell
::
Cell
(
MElement
*
element
,
int
domain
)
Cell
::
Cell
(
MElement
*
element
,
int
domain
)
...
@@ -65,15 +59,14 @@ Cell::Cell(Cell* parent, int i)
...
@@ -65,15 +59,14 @@ Cell::Cell(Cell* parent, int i)
void
Cell
::
_sortVertexIndices
()
void
Cell
::
_sortVertexIndices
()
{
{
std
::
vector
<
std
::
pair
<
MVertex
*
,
int
>
>
si
;
std
::
map
<
MVertex
*
,
int
,
MVertexLessThanNum
>
si
;
for
(
unsigned
int
i
=
0
;
i
<
_v
.
size
();
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
_v
.
size
();
i
++
)
si
.
push_back
(
std
::
make_pair
(
_v
[
i
],
i
)
);
si
[
_v
[
i
]]
=
i
;
std
::
sort
(
si
.
begin
(),
si
.
end
(),
Less_VertexNumIndex
());
for
(
unsigned
int
i
=
0
;
i
<
si
.
size
();
i
++
)
std
::
map
<
MVertex
*
,
int
,
MVertexLessThanNum
>::
iterator
it
;
_si
.
push_back
(
si
[
i
].
second
);
for
(
it
=
si
.
begin
();
it
!=
si
.
end
();
it
++
)
_si
.
push_back
(
it
->
second
);
}
}
inline
int
Cell
::
getSortedVertex
(
int
vertex
)
const
inline
int
Cell
::
getSortedVertex
(
int
vertex
)
const
...
...
This diff is collapsed.
Click to expand it.
Geo/Cell.h
+
0
−
6
View file @
25cd3ff0
...
@@ -19,12 +19,6 @@ public:
...
@@ -19,12 +19,6 @@ public:
bool
operator
()(
const
Cell
*
c1
,
const
Cell
*
c2
)
const
;
bool
operator
()(
const
Cell
*
c1
,
const
Cell
*
c2
)
const
;
};
};
class
Less_VertexNumIndex
{
public:
bool
operator
()(
const
std
::
pair
<
MVertex
*
,
int
>
v1
,
const
std
::
pair
<
MVertex
*
,
int
>
v2
)
const
;
};
// Class to save cell boundary orientation information
// Class to save cell boundary orientation information
class
BdInfo
{
class
BdInfo
{
private:
private:
...
...
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