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
bdf8e7eb
Commit
bdf8e7eb
authored
20 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
few optimizations.
[[Imported from SVN: r1841]]
parent
77b5f516
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/alu3dgrid/alu3dgrid.cc
+8
-17
8 additions, 17 deletions
grid/alu3dgrid/alu3dgrid.cc
with
8 additions
and
17 deletions
grid/alu3dgrid/alu3dgrid.cc
+
8
−
17
View file @
bdf8e7eb
...
...
@@ -180,16 +180,14 @@ namespace Dune {
template
<
int
cd
,
PartitionIteratorType
pitype
>
inline
typename
ALU3dGrid
<
dim
,
dimworld
>::
Traits
::
template
codim
<
cd
>
::
template
partition
<
pitype
>
::
LevelIterator
ALU3dGrid
<
dim
,
dimworld
>::
lbegin
(
int
level
)
const
{
ALU3dGridLevelIterator
<
cd
,
pitype
,
const
MyType
>
it
(
*
this
,
level
);
return
it
;
return
ALU3dGridLevelIterator
<
cd
,
pitype
,
const
MyType
>
(
*
this
,
level
);
}
template
<
int
dim
,
int
dimworld
>
template
<
int
cd
,
PartitionIteratorType
pitype
>
inline
typename
ALU3dGrid
<
dim
,
dimworld
>::
Traits
::
template
codim
<
cd
>
::
template
partition
<
pitype
>
::
LevelIterator
ALU3dGrid
<
dim
,
dimworld
>::
lend
(
int
level
)
const
{
ALU3dGridLevelIterator
<
cd
,
pitype
,
const
MyType
>
it
(
*
this
,
level
,
true
);
return
it
;
return
ALU3dGridLevelIterator
<
cd
,
pitype
,
const
MyType
>
(
*
this
,
level
,
true
);
}
// lbegin methods
...
...
@@ -197,16 +195,14 @@ namespace Dune {
template
<
int
cd
>
inline
typename
ALU3dGrid
<
dim
,
dimworld
>::
Traits
::
template
codim
<
cd
>
::
template
partition
<
All_Partition
>
::
LevelIterator
ALU3dGrid
<
dim
,
dimworld
>::
lbegin
(
int
level
)
const
{
ALU3dGridLevelIterator
<
cd
,
All_Partition
,
const
MyType
>
it
(
*
this
,
level
);
return
it
;
return
ALU3dGridLevelIterator
<
cd
,
All_Partition
,
const
MyType
>
(
*
this
,
level
);
}
template
<
int
dim
,
int
dimworld
>
template
<
int
cd
>
inline
typename
ALU3dGrid
<
dim
,
dimworld
>::
Traits
::
template
codim
<
cd
>
::
template
partition
<
All_Partition
>
::
LevelIterator
ALU3dGrid
<
dim
,
dimworld
>::
lend
(
int
level
)
const
{
ALU3dGridLevelIterator
<
cd
,
All_Partition
,
const
MyType
>
it
(
*
this
,
level
,
true
);
return
it
;
return
ALU3dGridLevelIterator
<
cd
,
All_Partition
,
const
MyType
>
(
*
this
,
level
,
true
);
}
// leaf methods
...
...
@@ -214,15 +210,13 @@ namespace Dune {
inline
typename
ALU3dGrid
<
dim
,
dimworld
>::
LeafIteratorType
ALU3dGrid
<
dim
,
dimworld
>::
leafbegin
(
int
level
,
PartitionIteratorType
pitype
)
const
{
ALU3dGridLeafIterator
<
const
MyType
>
it
((
*
this
),
level
,
false
,
pitype
);
return
it
;
return
ALU3dGridLeafIterator
<
const
MyType
>
((
*
this
),
level
,
false
,
pitype
);
}
template
<
int
dim
,
int
dimworld
>
inline
typename
ALU3dGrid
<
dim
,
dimworld
>::
LeafIteratorType
ALU3dGrid
<
dim
,
dimworld
>::
leafend
(
int
level
,
PartitionIteratorType
pitype
)
const
{
ALU3dGridLeafIterator
<
const
MyType
>
it
((
*
this
),
level
,
true
,
pitype
);
return
it
;
return
ALU3dGridLeafIterator
<
const
MyType
>
((
*
this
),
level
,
true
,
pitype
);
}
// global refine
...
...
@@ -1509,12 +1503,9 @@ namespace Dune {
if
(
!
item_
->
up
()
)
{
std
::
cerr
<<
"ALU3dGridEntity<0,"
<<
dim
<<
","
<<
dimworld
<<
"> :: father() : no father of entity globalid = "
<<
globalIndex
()
<<
"
\n
"
;
ALU3dGridEntityPointer
<
0
,
All_Partition
,
GridImp
>
vati
(
grid_
,
static_cast
<
ALU3DSPACE
HElementType
&>
(
*
item_
));
return
vati
;
return
ALU3dGridEntityPointer
<
0
,
All_Partition
,
GridImp
>
(
grid_
,
static_cast
<
ALU3DSPACE
HElementType
&>
(
*
item_
));
}
ALU3dGridEntityPointer
<
0
,
All_Partition
,
GridImp
>
vati
(
grid_
,
static_cast
<
ALU3DSPACE
HElementType
&>
(
*
(
item_
->
up
())));
return
vati
;
return
ALU3dGridEntityPointer
<
0
,
All_Partition
,
GridImp
>
(
grid_
,
static_cast
<
ALU3DSPACE
HElementType
&>
(
*
(
item_
->
up
())));
}
// Adaptation methods
...
...
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