Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Tobias Leibner
dune-common
Commits
705c1040
Commit
705c1040
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Uses size_t for the ParallelLocalIndex as this is right type for
accessing arrays, and containers. [[Imported from SVN: r1883]]
parent
cc1bfb11
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
istl/remoteindices.hh
+10
-10
10 additions, 10 deletions
istl/remoteindices.hh
with
10 additions
and
10 deletions
istl/remoteindices.hh
+
10
−
10
View file @
705c1040
...
...
@@ -67,7 +67,7 @@ namespace Dune {
* @param isPublic True if the index might also be
* known to other processes.
*/
ParallelLocalIndex
(
uint32
_t
localIndex
,
const
AttributeType
&
attribute
,
bool
isPublic
);
ParallelLocalIndex
(
size
_t
localIndex
,
const
AttributeType
&
attribute
,
bool
isPublic
);
/**
* @brief Parameterless constructor.
*
...
...
@@ -83,7 +83,7 @@ namespace Dune {
* @param isPublic True if the index might also be
* known to other processes.
*
ParallelLocalIndex(const AttributeType& attribute,
uint32
_t local,
ParallelLocalIndex(const AttributeType& attribute,
size
_t local,
bool isPublic);
*/
/**
...
...
@@ -102,19 +102,19 @@ namespace Dune {
* @brief get the local index.
* @return The local index.
*/
inline
uint32
_t
local
()
const
;
inline
size
_t
local
()
const
;
/**
* @brief Convert to the local index represented by an int.
*/
inline
operator
uint32
_t
()
const
;
inline
operator
size
_t
()
const
;
/**
* @brief Assign a new local index.
*
* @param index The new local index.
*/
inline
ParallelLocalIndex
<
AttributeType
>&
operator
=
(
uint32
_t
index
);
inline
ParallelLocalIndex
<
AttributeType
>&
operator
=
(
size
_t
index
);
/**
* @brief Check whether the index might also be known other processes.
...
...
@@ -136,7 +136,7 @@ namespace Dune {
private:
/** @brief The local index. */
uint32
_t
localIndex_
;
size
_t
localIndex_
;
/** @brief An attribute for the index. */
char
attribute_
;
...
...
@@ -859,7 +859,7 @@ namespace Dune
template
<
class
T
>
ParallelLocalIndex
<
T
>::
ParallelLocalIndex
(
uint32
_t
local
,
const
T
&
attribute
,
bool
isPublic
)
ParallelLocalIndex
<
T
>::
ParallelLocalIndex
(
size
_t
local
,
const
T
&
attribute
,
bool
isPublic
)
:
localIndex_
(
local
),
attribute_
(
static_cast
<
char
>
(
attribute
)),
public_
(
static_cast
<
char
>
(
isPublic
)),
state_
(
static_cast
<
char
>
(
VALID
))
{}
...
...
@@ -884,20 +884,20 @@ namespace Dune
}
template
<
class
T
>
inline
uint32
_t
ParallelLocalIndex
<
T
>::
local
()
const
inline
size
_t
ParallelLocalIndex
<
T
>::
local
()
const
{
return
localIndex_
;
}
template
<
class
T
>
inline
ParallelLocalIndex
<
T
>::
operator
uint32
_t
()
const
inline
ParallelLocalIndex
<
T
>::
operator
size
_t
()
const
{
return
localIndex_
;
}
template
<
class
T
>
inline
ParallelLocalIndex
<
T
>&
ParallelLocalIndex
<
T
>::
operator
=
(
uint32
_t
index
)
ParallelLocalIndex
<
T
>::
operator
=
(
size
_t
index
)
{
localIndex_
=
index
;
return
*
this
;
...
...
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