Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sander, Oliver
dune-gfe
Commits
89c3c17a
Commit
89c3c17a
authored
10 years ago
by
Oliver Sander
Committed by
sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use the IndexSet 'Index' type for indices, instead of hardwiring 'int'
[[Imported from SVN: r9923]]
parent
3d761c3f
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
dune/gfe/parallel/globalp2mapper.hh
+6
-3
6 additions, 3 deletions
dune/gfe/parallel/globalp2mapper.hh
with
6 additions
and
3 deletions
dune/gfe/parallel/globalp2mapper.hh
+
6
−
3
View file @
89c3c17a
...
...
@@ -26,7 +26,10 @@ namespace Dune {
{
public:
typedef
std
::
map
<
int
,
int
>
IndexMap
;
/** \brief The integer number type used for indices */
typedef
typename
GridView
::
IndexSet
::
IndexType
Index
;
typedef
std
::
map
<
Index
,
Index
>
IndexMap
;
GlobalP2Mapper
(
const
GridView
&
gridView
)
{
...
...
@@ -96,11 +99,11 @@ namespace Dune {
}
/** \brief Given a local index, retrieve its index globally unique over all processes. */
int
index
(
const
int
&
localIndex
)
const
{
Index
index
(
const
int
&
localIndex
)
const
{
return
localGlobalMap_
.
find
(
localIndex
)
->
second
;
}
int
localIndex
(
const
int
&
globalIndex
)
const
{
Index
localIndex
(
const
int
&
globalIndex
)
const
{
return
globalLocalMap_
.
find
(
globalIndex
)
->
second
;
}
...
...
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