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
f3f06d8b
Commit
f3f06d8b
authored
19 years ago
by
Peter Bastian
Browse files
Options
Downloads
Patches
Plain Diff
implemented size methods using the index sets
[[Imported from SVN: r2929]]
parent
e7d617cd
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/uggrid.hh
+17
-4
17 additions, 4 deletions
grid/uggrid.hh
with
17 additions
and
4 deletions
grid/uggrid.hh
+
17
−
4
View file @
f3f06d8b
...
...
@@ -276,6 +276,17 @@ namespace Dune {
//! number of leaf entities per codim in this process
int
size
(
int
codim
)
const
{
if
(
codim
==
0
)
{
if
(
dim
==
2
)
return
size
(
codim
,
simplex
)
+
size
(
codim
,
cube
);
if
(
dim
==
3
)
return
size
(
codim
,
simplex
)
+
size
(
codim
,
cube
)
+
size
(
codim
,
pyramid
)
+
size
(
codim
,
prism
);
}
if
(
codim
==
dim
)
{
if
(
dim
==
2
)
return
size
(
codim
,
simplex
);
if
(
dim
==
3
)
return
size
(
codim
,
simplex
);
}
DUNE_THROW
(
NotImplemented
,
"not implemented"
);
return
0
;
}
...
...
@@ -283,15 +294,17 @@ namespace Dune {
//! number of entities per level, codim and geometry type in this process
int
size
(
int
level
,
int
codim
,
GeometryType
type
)
const
{
DUNE_THROW
(
NotImplemented
,
"not implemented"
);
return
0
;
return
this
->
levelIndexSet
(
level
).
size
(
codim
,
type
);
//DUNE_THROW(NotImplemented, "not implemented");
//return 0;
}
//! number of leaf entities per codim and geometry type in this process
int
size
(
int
codim
,
GeometryType
type
)
const
{
DUNE_THROW
(
NotImplemented
,
"not implemented"
);
return
0
;
return
this
->
leafIndexSet
().
size
(
codim
,
type
);
//DUNE_THROW(NotImplemented, "not implemented");
//return 0;
}
/** \brief Access to the GlobalIdSet */
...
...
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