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
Core Modules
dune-common
Commits
67669c1c
Commit
67669c1c
authored
19 years ago
by
Peter Bastian
Browse files
Options
Downloads
Patches
Plain Diff
updated index sets to new interface
[[Imported from SVN: r2925]]
parent
1ec1d1b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
grid/uggrid.hh
+2
-0
2 additions, 0 deletions
grid/uggrid.hh
grid/uggrid/uggridindexsets.hh
+66
-4
66 additions, 4 deletions
grid/uggrid/uggridindexsets.hh
with
68 additions
and
4 deletions
grid/uggrid.hh
+
2
−
0
View file @
67669c1c
...
...
@@ -104,7 +104,9 @@ namespace Dune {
UGGridHierarchicIterator
,
UGGridLeafIterator
,
UGGridLevelIndexSet
<
UGGrid
<
dim
,
dimworld
>
>
,
UGGridLevelIndexSetTypes
<
UGGrid
<
dim
,
dimworld
>
>
,
UGGridLeafIndexSet
<
UGGrid
<
dim
,
dimworld
>
>
,
UGGridLeafIndexSetTypes
<
UGGrid
<
dim
,
dimworld
>
>
,
UGGridGlobalIdSet
<
UGGrid
<
dim
,
dimworld
>
>
,
unsigned
int
,
UGGridLocalIdSet
<
UGGrid
<
dim
,
dimworld
>
>
,
...
...
This diff is collapsed.
Click to expand it.
grid/uggrid/uggridindexsets.hh
+
66
−
4
View file @
67669c1c
...
...
@@ -13,10 +13,27 @@
namespace
Dune
{
template
<
class
GridImp
>
struct
UGGridLevelIndexSetTypes
{
//! The types
template
<
int
cd
>
struct
Codim
{
template
<
PartitionIteratorType
pitype
>
struct
Partition
{
typedef
typename
GridImp
::
Traits
::
template
Codim
<
cd
>
::
template
Partition
<
pitype
>
::
LevelIterator
Iterator
;
};
};
};
template
<
class
GridImp
>
class
UGGridLevelIndexSet
:
public
IndexSet
<
GridImp
,
UGGridLevelIndexSet
<
GridImp
>
>
class
UGGridLevelIndexSet
:
public
IndexSet
<
GridImp
,
UGGridLevelIndexSet
<
GridImp
>
,
UGGridLevelIndexSetTypes
<
GridImp
>
>
{
enum
{
dim
=
GridImp
::
dimension
};
typedef
IndexSet
<
GridImp
,
UGGridLevelIndexSet
<
GridImp
>
,
UGGridLevelIndexSetTypes
<
GridImp
>
>
Base
;
public
:
...
...
@@ -74,11 +91,25 @@ namespace Dune {
}
/** \brief Deliver all geometry types used in this grid */
const
std
::
vector
<
GeometryType
>&
geomTypes
()
const
const
std
::
vector
<
GeometryType
>&
geomTypes
(
int
codim
)
const
{
return
myTypes_
;
}
//! one past the end on this level
template
<
int
cd
,
PartitionIteratorType
pitype
>
typename
Base
::
template
Codim
<
cd
>
::
template
Partition
<
pitype
>
::
Iterator
begin
()
const
{
return
grid_
.
template
lbegin
<
cd
,
pitype
>(
level_
);
}
//! Iterator to one past the last entity of given codim on level for partition type
template
<
int
cd
,
PartitionIteratorType
pitype
>
typename
Base
::
template
Codim
<
cd
>
::
template
Partition
<
pitype
>
::
Iterator
end
()
const
{
return
grid_
.
template
lend
<
cd
,
pitype
>(
level_
);
}
//private:
void
update
(
const
GridImp
&
grid
,
int
level
)
{
...
...
@@ -155,9 +186,26 @@ namespace Dune {
std
::
vector
<
GeometryType
>
myTypes_
;
};
template
<
class
GridImp
>
struct
UGGridLeafIndexSetTypes
{
//! The types
template
<
int
cd
>
struct
Codim
{
template
<
PartitionIteratorType
pitype
>
struct
Partition
{
typedef
typename
GridImp
::
Traits
::
template
Codim
<
cd
>
::
template
Partition
<
pitype
>
::
LeafIterator
Iterator
;
};
};
};
template
<
class
GridImp
>
class
UGGridLeafIndexSet
:
public
IndexSet
<
GridImp
,
UGGridLeafIndexSet
<
GridImp
>
>
class
UGGridLeafIndexSet
:
public
IndexSet
<
GridImp
,
UGGridLeafIndexSet
<
GridImp
>
,
UGGridLeafIndexSetTypes
<
GridImp
>
>
{
typedef
IndexSet
<
GridImp
,
UGGridLeafIndexSet
<
GridImp
>
,
UGGridLeafIndexSetTypes
<
GridImp
>
>
Base
;
public:
//friend class UGGrid<dim,dim>;
...
...
@@ -210,11 +258,25 @@ namespace Dune {
}
/** deliver all geometry types used in this grid */
const
std
::
vector
<
GeometryType
>&
geomTypes
()
const
const
std
::
vector
<
GeometryType
>&
geomTypes
(
int
codim
)
const
{
return
myTypes_
;
}
//! one past the end on this level
template
<
int
cd
,
PartitionIteratorType
pitype
>
typename
Base
::
template
Codim
<
cd
>
::
template
Partition
<
pitype
>
::
Iterator
begin
()
const
{
return
grid_
.
template
leafbegin
<
cd
,
pitype
>();
}
//! Iterator to one past the last entity of given codim on level for partition type
template
<
int
cd
,
PartitionIteratorType
pitype
>
typename
Base
::
template
Codim
<
cd
>
::
template
Partition
<
pitype
>
::
Iterator
end
()
const
{
return
grid_
.
template
leafend
<
cd
,
pitype
>();
}
//private:
void
update
()
{
...
...
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