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
Dmitri Naumov
ogs
Commits
79ac3d62
Commit
79ac3d62
authored
4 years ago
by
Tom Fischer
Committed by
Dmitri Naumov
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[NL/DOF] Readability: rename id -> index.
parent
9cdb7351
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NumLib/DOF/MeshComponentMap.cpp
+6
-6
6 additions, 6 deletions
NumLib/DOF/MeshComponentMap.cpp
with
6 additions
and
6 deletions
NumLib/DOF/MeshComponentMap.cpp
+
6
−
6
View file @
79ac3d62
...
...
@@ -359,20 +359,20 @@ void MeshComponentMap::createParallelMeshComponentMap(
// mesh items are ordered first by node, cell, ....
for
(
std
::
size_t
j
=
0
;
j
<
c
.
getNumberOfNodes
();
j
++
)
{
GlobalIndexType
global_i
d
=
static_cast
<
GlobalIndexType
>
(
GlobalIndexType
global_i
ndex
=
static_cast
<
GlobalIndexType
>
(
components
.
size
()
*
partitioned_mesh
.
getGlobalNodeID
(
j
)
+
comp_id
);
const
bool
is_ghost
=
partitioned_mesh
.
isGhostNode
(
partitioned_mesh
.
getNode
(
j
)
->
getID
());
if
(
is_ghost
)
{
_ghosts_indices
.
push_back
(
global_i
d
);
global_i
d
=
-
global_i
d
;
_ghosts_indices
.
push_back
(
global_i
ndex
);
global_i
ndex
=
-
global_i
ndex
;
// If the ghost entry has an index of 0,
// its index is set to the negative value of unknowns.
if
(
global_i
d
==
0
)
if
(
global_i
ndex
==
0
)
{
global_i
d
=
-
num_unknowns
;
global_i
ndex
=
-
num_unknowns
;
}
}
else
...
...
@@ -381,7 +381,7 @@ void MeshComponentMap::createParallelMeshComponentMap(
}
_dict
.
insert
(
Line
(
Location
(
mesh_id
,
MeshLib
::
MeshItemType
::
Node
,
j
),
comp_id
,
global_i
d
));
comp_id
,
global_i
ndex
));
}
_num_global_dof
+=
partitioned_mesh
.
getNumberOfGlobalNodes
();
...
...
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