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
36a4e359
Commit
36a4e359
authored
19 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
changes in default set, numberOfHoles and needsCompress added.
Also size method of sets changed. [[Imported from SVN: r4238]]
parent
b40f539a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grid/common/defaultindexsets.hh
+7
-20
7 additions, 20 deletions
grid/common/defaultindexsets.hh
with
7 additions
and
20 deletions
grid/common/defaultindexsets.hh
+
7
−
20
View file @
36a4e359
...
...
@@ -106,25 +106,16 @@ namespace Dune {
//! no extra memory for restriction is needed
int
additionalSizeEstimate
()
const
{
return
0
;
}
//! returns true if index idx of codim cd is new, here all indices are old
bool
indexIsNew
(
int
idx
,
int
cd
)
const
{
return
false
;
}
//! returns true if index idx is new, here all indices are old
bool
indexIsNew
(
int
idx
)
const
{
return
false
;
}
int
type
()
const
{
return
myType
;
}
//! we have no old size
int
oldSize
(
int
codim
)
const
{
return
0
;
}
int
type
()
const
{
return
myType
;
}
int
numberOfHoles
(
int
codim
)
const
{
return
0
;
}
//! return old index, for dof manager only
int
oldIndex
(
int
elNum
,
int
codim
)
const
{
return
0
;
}
int
oldIndex
(
int
hole
,
int
codim
)
const
{
return
0
;
}
//! return new index, for dof manager only
int
newIndex
(
int
elNum
,
int
codim
)
const
{
return
0
;
}
int
newIndex
(
int
hole
,
int
codim
)
const
{
return
0
;
}
//! write index set to xdr file
bool
write_xdr
(
const
std
::
basic_string
<
char
>
filename
,
int
timestep
)
...
...
@@ -207,19 +198,15 @@ namespace Dune {
IndexSetWrapper
(
const
IndexSetWrapper
<
IndexSetImp
>
&
s
)
:
set_
(
s
.
set_
)
{}
//! return size of set for codim
int
size
(
int
codim
,
GeometryType
type
)
const
int
size
(
GeometryType
type
)
const
{
return
set_
.
size
(
codim
,
type
);
return
set_
.
size
(
type
);
}
//! return size of grid entities per level and codim
int
size
(
int
codim
)
const
{
int
s
=
0
;
const
std
::
vector
<
GeometryType
>
&
types
=
set_
.
geomTypes
(
codim
);
for
(
unsigned
int
i
=
0
;
i
<
types
.
size
();
i
++
)
s
+=
set_
.
size
(
codim
,
types
[
i
]);
return
s
;
return
set_
.
size
(
codim
);
}
//! return index of en
...
...
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