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
427f1f7a
Commit
427f1f7a
authored
20 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
Added new functions for restiction and prolongation and dof compress
process. [[Imported from SVN: r1697]]
parent
a01c98a7
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
fem/common/dofmapperinterface.hh
+41
-3
41 additions, 3 deletions
fem/common/dofmapperinterface.hh
with
41 additions
and
3 deletions
fem/common/dofmapperinterface.hh
+
41
−
3
View file @
427f1f7a
...
...
@@ -34,6 +34,18 @@ namespace Dune {
//! return max number of local dofs per entity
virtual
int
numberOfDofs
()
const
=
0
;
//! returns true if index is new ( for dof compress )
virtual
bool
indexNew
(
int
num
)
const
=
0
;
//! return old index in dof array of given index ( for dof compress )
virtual
int
oldIndex
(
int
num
)
const
=
0
;
//! return new index in dof array
virtual
int
newIndex
(
int
num
)
const
=
0
;
/*! return estimate for size that is addtional needed
for restriction of data */
virtual
int
additionalSizeEstimate
()
const
=
0
;
};
//***********************************************************************
...
...
@@ -62,9 +74,7 @@ namespace Dune {
//! default implementation if not overlaoded
virtual
int
newSize
()
const
{
// overload this method in derived class
assert
(
false
);
return
-
1
;
return
asImp
().
size
();
}
//! default implementation if not overlaoded
...
...
@@ -82,6 +92,34 @@ namespace Dune {
return
-
1
;
}
//! returns true if index is new ( for dof compress )
virtual
bool
indexNew
(
int
num
)
const
{
assert
(
false
);
return
false
;
}
//! return old index in dof array of given index ( for dof compress )
virtual
int
oldIndex
(
int
num
)
const
{
assert
(
false
);
return
-
1
;
}
// return new index in dof array
virtual
int
newIndex
(
int
num
)
const
{
assert
(
false
);
return
-
1
;
}
// return estimate for size additional need for restriction of data
virtual
int
additionalSizeEstimate
()
const
{
assert
(
false
);
return
-
1
;
}
private
:
//! Barton-Nackman trick
DofMapperImp
&
asImp
()
{
return
static_cast
<
DofMapperImp
&>
(
*
this
);
};
...
...
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