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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
7fd21fd0
Commit
7fd21fd0
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
store partition number as a short (instead of a full integer)
parent
51569e8f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/MElement.h
+5
-3
5 additions, 3 deletions
Geo/MElement.h
with
5 additions
and
3 deletions
Geo/MElement.h
+
5
−
3
View file @
7fd21fd0
...
...
@@ -46,12 +46,13 @@ class MElement
{
private:
static
int
_globalNum
;
int
_num
,
_partition
;
int
_num
;
short
_partition
;
char
_visible
;
public
:
MElement
(
int
num
=
0
,
int
part
=
0
)
:
_partition
(
part
),
_visible
(
true
)
:
_visible
(
true
)
{
if
(
num
){
_num
=
num
;
...
...
@@ -60,6 +61,7 @@ class MElement
else
{
_num
=
++
_globalNum
;
}
_partition
=
(
short
)
part
;
}
virtual
~
MElement
(){}
...
...
@@ -77,7 +79,7 @@ class MElement
// get/set the partition to which the element belongs
virtual
int
getPartition
(){
return
_partition
;
}
virtual
void
setPartition
(
int
num
){
_partition
=
num
;
}
virtual
void
setPartition
(
int
num
){
_partition
=
(
short
)
num
;
}
// get/set the visibility flag
virtual
char
getVisibility
(){
return
_visible
;
}
...
...
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