Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dg
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
gmsh
dg
Commits
4c7b0f7c
Commit
4c7b0f7c
authored
3 years ago
by
Matteo Cicuttin
Browse files
Options
Downloads
Patches
Plain Diff
material_tag() in entity.
parent
d1a716e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/entity.h
+3
-0
3 additions, 0 deletions
include/entity.h
src/entity.cpp
+11
-0
11 additions, 0 deletions
src/entity.cpp
with
14 additions
and
0 deletions
include/entity.h
+
3
−
0
View file @
4c7b0f7c
...
@@ -24,6 +24,8 @@ class entity
...
@@ -24,6 +24,8 @@ class entity
int
elemType_2D
;
int
elemType_2D
;
int
g_order
;
int
g_order
;
int
a_order
;
int
a_order
;
int
parent_dim
;
int
parent_tag
;
size_t
m_dof_base
;
size_t
m_dof_base
;
size_t
m_flux_base
;
size_t
m_flux_base
;
...
@@ -103,6 +105,7 @@ public:
...
@@ -103,6 +105,7 @@ public:
void
sort_by_orientation
(
void
);
void
sort_by_orientation
(
void
);
void
sort_by_gmsh
(
void
);
void
sort_by_gmsh
(
void
);
int
material_tag
(
void
)
const
;
int
gmsh_tag
(
void
)
const
;
int
gmsh_tag
(
void
)
const
;
int
gmsh_elem_type
(
void
)
const
;
int
gmsh_elem_type
(
void
)
const
;
entity_ordering
current_elem_ordering
(
void
)
const
;
entity_ordering
current_elem_ordering
(
void
)
const
;
...
...
This diff is collapsed.
Click to expand it.
src/entity.cpp
+
11
−
0
View file @
4c7b0f7c
...
@@ -42,6 +42,8 @@ entity::entity(const entity_params& ep)
...
@@ -42,6 +42,8 @@ entity::entity(const entity_params& ep)
assert
(
physical_faces
.
size
()
==
4
*
physical_cells
.
size
());
assert
(
physical_faces
.
size
()
==
4
*
physical_cells
.
size
());
assert
(
faceTags
.
size
()
==
4
*
physical_cells
.
size
());
assert
(
faceTags
.
size
()
==
4
*
physical_cells
.
size
());
gm
::
getParent
(
dim
,
tag
,
parent_dim
,
parent_tag
);
}
}
std
::
vector
<
size_t
>
std
::
vector
<
size_t
>
...
@@ -500,6 +502,15 @@ entity::sort_by_gmsh(void)
...
@@ -500,6 +502,15 @@ entity::sort_by_gmsh(void)
}
}
#endif
#endif
int
entity
::
material_tag
(
void
)
const
{
if
(
parent_tag
==
-
1
)
return
tag
;
return
parent_tag
;
}
int
int
entity
::
gmsh_tag
(
void
)
const
entity
::
gmsh_tag
(
void
)
const
{
{
...
...
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