Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
71a10da1
Commit
71a10da1
authored
1 year ago
by
Dmitri Naumov
Committed by
Tom Fischer
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[MeL] Rename function argument for consistency
parent
7cd4b410
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MeshToolsLib/MeshEditing/ConvertToLinearMesh.cpp
+7
-7
7 additions, 7 deletions
MeshToolsLib/MeshEditing/ConvertToLinearMesh.cpp
with
7 additions
and
7 deletions
MeshToolsLib/MeshEditing/ConvertToLinearMesh.cpp
+
7
−
7
View file @
71a10da1
...
...
@@ -45,12 +45,12 @@ T_ELEMENT* createLinearElement(MeshLib::Element const* e,
}
// unnamed namespace
std
::
unique_ptr
<
MeshLib
::
Mesh
>
convertToLinearMesh
(
MeshLib
::
Mesh
const
&
org_
mesh
,
std
::
string
const
&
new_mesh_name
)
MeshLib
::
Mesh
const
&
mesh
,
std
::
string
const
&
new_mesh_name
)
{
auto
const
&
org_elements
=
org_
mesh
.
getElements
();
auto
const
&
org_elements
=
mesh
.
getElements
();
// mark base nodes
std
::
vector
<
bool
>
marked_base_nodes
(
org_
mesh
.
getNodes
().
size
(),
false
);
std
::
vector
<
bool
>
marked_base_nodes
(
mesh
.
getNodes
().
size
(),
false
);
for
(
auto
const
org_element
:
org_elements
)
{
for
(
std
::
size_t
k
=
0
;
k
<
org_element
->
getNumberOfBaseNodes
();
++
k
)
...
...
@@ -64,7 +64,7 @@ std::unique_ptr<MeshLib::Mesh> convertToLinearMesh(
std
::
vector
<
MeshLib
::
Node
*>
new_mesh_nodes
{
static_cast
<
std
::
size_t
>
(
std
::
count
(
begin
(
marked_base_nodes
),
end
(
marked_base_nodes
),
true
))};
std
::
size_t
base_node_cnt
=
0
;
auto
const
&
org_nodes
=
org_
mesh
.
getNodes
();
auto
const
&
org_nodes
=
mesh
.
getNodes
();
std
::
vector
<
std
::
size_t
>
base_node_map
(
org_nodes
.
size
(),
-
1
);
for
(
std
::
size_t
k
=
0
;
k
<
org_nodes
.
size
();
++
k
)
{
...
...
@@ -79,7 +79,7 @@ std::unique_ptr<MeshLib::Mesh> convertToLinearMesh(
// create new elements with the quadratic nodes
std
::
vector
<
MeshLib
::
Element
*>
vec_new_eles
;
for
(
MeshLib
::
Element
const
*
e
:
org_
mesh
.
getElements
())
for
(
MeshLib
::
Element
const
*
e
:
mesh
.
getElements
())
{
if
(
e
->
getCellType
()
==
MeshLib
::
CellType
::
LINE3
)
{
...
...
@@ -115,12 +115,12 @@ std::unique_ptr<MeshLib::Mesh> convertToLinearMesh(
auto
new_mesh
=
std
::
make_unique
<
MeshLib
::
Mesh
>
(
new_mesh_name
,
new_mesh_nodes
,
vec_new_eles
,
org_
mesh
.
getProperties
().
excludeCopyProperties
(
mesh
.
getProperties
().
excludeCopyProperties
(
std
::
vector
<
MeshLib
::
MeshItemType
>
(
1
,
MeshLib
::
MeshItemType
::
Node
)));
// copy property vectors for nodes
for
(
auto
[
name
,
property
]
:
org_
mesh
.
getProperties
())
for
(
auto
[
name
,
property
]
:
mesh
.
getProperties
())
{
if
(
property
->
getMeshItemType
()
!=
MeshLib
::
MeshItemType
::
Node
)
{
...
...
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