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
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
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
Timo Koch
dune-common
Commits
805b3e65
Commit
805b3e65
authored
22 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
Reordered some partes to avoid g++-3.0 errors
[[Imported from SVN: r4]]
parent
28b647f6
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
grid/spgrid.hh
+15
-11
15 additions, 11 deletions
grid/spgrid.hh
with
15 additions
and
11 deletions
grid/spgrid.hh
+
15
−
11
View file @
805b3e65
...
...
@@ -239,9 +239,10 @@ namespace Dune {
/// The Index in the structured parallel Grid
template
<
int
DIM
>
class
spgrid
<
DIM
>::
remotelist
{
private:
class
spgrid
<
DIM
>::
remotelist
{
friend
class
index
;
private:
remotelist
(
int
s
)
:
size
(
s
)
{
list
=
new
remoteindex
[
size
];
};
public
:
remoteindex
*
list
;
...
...
@@ -260,17 +261,18 @@ namespace Dune {
template
<
int
DIM
>
class
spgrid
<
DIM
>::
index
{
friend
class
iterator
;
public:
const
spgrid
<
DIM
>
&
g
;
private:
int
id_
;
const
spgrid
<
DIM
>
&
g
;
level
l_
;
index
(
const
spgrid
<
DIM
>
&
grid
)
:
g
(
grid
)
{};
index
&
operator
=
(
const
iterator
&
i
)
{
id_
=
i
.
id_
;
l_
=
i
.
l_
;
return
(
*
this
);
};
friend
class
spgrid
<
DIM
>::
iterator
;
public
:
index
(
const
iterator
&
i
)
:
id_
(
i
.
id_
),
g
(
i
.
g
),
l_
(
i
.
l_
)
{};
index
(
const
iterator
&
i
)
:
g
(
i
.
g
),
id_
(
i
.
id_
),
l_
(
i
.
l_
)
{};
int
id
()
const
{
return
id_
;
};
array
<
DIM
>&
coord
()
const
{
return
g
.
id_to_coord
(
l_
,
id_
);
};
int
globalid
()
const
;
...
...
@@ -286,11 +288,13 @@ namespace Dune {
template
<
int
DIM
>
class
spgrid
<
DIM
>::
iterator
{
int
id_
;
friend
class
index
;
public:
const
spgrid
<
DIM
>
&
g
;
private:
int
id_
;
level
l_
;
index
referenz
;
private:
// calc overlap in direction d in this level
// this levels overlap for a special dimension and process
const
MPI_Comm
&
comm
()
const
{
return
g
.
comm_
;
};
...
...
@@ -303,15 +307,15 @@ namespace Dune {
* Constructors
*/
iterator
(
const
iterator
&
i
)
:
id_
(
i
.
id_
),
g
(
i
.
g
),
l_
(
i
.
l_
),
referenz
(
i
.
referenz
),
changed
(
i
.
changed
)
g
(
i
.
g
),
id_
(
i
.
id_
),
l_
(
i
.
l_
),
referenz
(
i
.
referenz
),
changed
(
i
.
changed
)
{
};
iterator
(
int
i
,
const
spgrid
<
DIM
>
&
grid
)
:
id_
(
i
),
g
(
grid
),
l_
(
0
),
referenz
(
grid
),
changed
(
true
)
g
(
grid
),
id_
(
i
),
l_
(
0
),
referenz
(
grid
),
changed
(
true
)
{
recalc_level
();
};
iterator
(
level
l
,
const
array
<
DIM
>
&
coord
,
const
spgrid
<
DIM
>
&
grid
)
:
g
(
grid
),
l_
(
l
),
referenz
(
grid
),
changed
(
true
)
iterator
(
level
l
,
const
array
<
DIM
>
&
coord
,
const
spgrid
<
DIM
>
&
grid
)
:
g
(
grid
),
l_
(
l
),
referenz
(
grid
),
changed
(
true
)
{
assert
(
l_
<
g
.
levels
);
id_
=
g
.
coord_to_id
(
l_
,
coord
);
...
...
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