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
28cd96ab
Commit
28cd96ab
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
pointers instead of references used
[[Imported from SVN: r1013]]
parent
e6b90312
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/sgrid/sgrid.cc
+6
-6
6 additions, 6 deletions
grid/sgrid/sgrid.cc
with
6 additions
and
6 deletions
grid/sgrid/sgrid.cc
+
6
−
6
View file @
28cd96ab
...
...
@@ -364,7 +364,7 @@ namespace Dune {
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
zentity
[
i
]
=
this
->
z
[
i
]
+
zref
[
i
]
-
1
;
// make Iterator
return
SLevelIterator
<
cc
,
dim
,
dimworld
,
All_Partition
>
(
*
(
this
->
grid
)
,
this
->
l
,(
this
->
grid
)
->
n
(
this
->
l
,
zentity
));
return
SLevelIterator
<
cc
,
dim
,
dimworld
,
All_Partition
>
(
this
->
grid
,
this
->
l
,(
this
->
grid
)
->
n
(
this
->
l
,
zentity
));
}
// default implementation uses entity method
...
...
@@ -588,21 +588,21 @@ namespace Dune {
if
(
level
+
1
>
maxlevel
)
return
;
// nothing to do
// compute reduced coordinates of element
FixedArray
<
int
,
dim
>
z
=
grid
.
z
(
level
,
fatherid
,
0
);
// expanded coordinates from id
FixedArray
<
int
,
dim
>
zred
=
grid
.
compress
(
level
,
z
);
// reduced coordinates from expaned coordinates
FixedArray
<
int
,
dim
>
z
=
grid
->
z
(
level
,
fatherid
,
0
);
// expanded coordinates from id
FixedArray
<
int
,
dim
>
zred
=
grid
->
compress
(
level
,
z
);
// reduced coordinates from expaned coordinates
// refine to first son
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
zred
[
i
]
=
2
*
zred
[
i
];
// generate all \f$2^{dim}\f$ sons
int
partition
=
grid
.
partition
(
level
,
z
);
int
partition
=
grid
->
partition
(
level
,
z
);
for
(
int
b
=
0
;
b
<
(
1
<<
dim
);
b
++
)
{
FixedArray
<
int
,
dim
>
zz
=
zred
;
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
if
(
b
&
(
1
<<
i
))
zz
[
i
]
+=
1
;
// zz is reduced coordinate of a son on level level+1
int
sonid
=
grid
.
n
(
level
+
1
,
grid
.
expand
(
level
+
1
,
zz
,
partition
));
int
sonid
=
grid
->
n
(
level
+
1
,
grid
->
expand
(
level
+
1
,
zz
,
partition
));
// push son on stack
StackElem
son
(
level
+
1
,
sonid
);
...
...
@@ -628,7 +628,7 @@ namespace Dune {
stack
.
push
(
originalElement
);
// compute maxlevel
maxlevel
=
MIN
(
_maxlevel
,
grid
.
maxlevel
());
maxlevel
=
MIN
(
_maxlevel
,
grid
->
maxlevel
());
// ok, push all the sons as well
push_sons
(
e
.
l
,
e
.
id
);
...
...
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