Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-solvers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
agnumpde
dune-solvers
Commits
608f0ce1
Commit
608f0ce1
authored
Feb 23, 2016
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation
parent
91217e95
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/solvers/transferoperators/mandelobsrestrictor.cc
+0
-4
0 additions, 4 deletions
dune/solvers/transferoperators/mandelobsrestrictor.cc
dune/solvers/transferoperators/mandelobsrestrictor.hh
+9
-0
9 additions, 0 deletions
dune/solvers/transferoperators/mandelobsrestrictor.hh
with
9 additions
and
4 deletions
dune/solvers/transferoperators/mandelobsrestrictor.cc
+
0
−
4
View file @
608f0ce1
...
@@ -22,10 +22,6 @@ restrict(const std::vector<BoxConstraint<field_type, blocksize> >&f,
...
@@ -22,10 +22,6 @@ restrict(const std::vector<BoxConstraint<field_type, blocksize> >&f,
for
(
size_t
i
=
0
;
i
<
t
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
t
.
size
();
i
++
)
t
[
i
].
clear
();
t
[
i
].
clear
();
// The Mandel restriction computes the maximum $m$ of all nodal base coefficients
// in the support of a given coarse grid base function \f$ \phi_c \f$. If the
// coefficient of \f$ \phi_c \f$ is smaller than \f$ m \f$ , it is set to \f$ m \f$.
// We use the multigrid transfer matrix to find all relevant fine grid dofs
// We use the multigrid transfer matrix to find all relevant fine grid dofs
typedef
typename
Dune
::
BCRSMatrix
<
Dune
::
FieldMatrix
<
field_type
,
1
,
1
>
>::
row_type
RowType
;
typedef
typename
Dune
::
BCRSMatrix
<
Dune
::
FieldMatrix
<
field_type
,
1
,
1
>
>::
row_type
RowType
;
typedef
typename
RowType
::
ConstIterator
ColumnIterator
;
typedef
typename
RowType
::
ConstIterator
ColumnIterator
;
...
...
This diff is collapsed.
Click to expand it.
dune/solvers/transferoperators/mandelobsrestrictor.hh
+
9
−
0
View file @
608f0ce1
...
@@ -8,6 +8,14 @@
...
@@ -8,6 +8,14 @@
#include
<dune/solvers/transferoperators/multigridtransfer.hh>
#include
<dune/solvers/transferoperators/multigridtransfer.hh>
#include
<dune/solvers/common/boxconstraint.hh>
#include
<dune/solvers/common/boxconstraint.hh>
/** \brief Mandel restriction to compute coarse grid obstacles, needed within montone multigrid methods.
*
* The Mandel restriction computes the maximum $m$ of all nodal base coefficients
* in the support of a given coarse grid base function \f$ \phi_c \f$. If the
* coefficient of \f$ \phi_c \f$ is smaller than \f$ m \f$ , it is set to \f$ m \f$.
*
* \tparam VectorType The block vector type of the algebraic problem.
*/
template
<
class
VectorType
>
template
<
class
VectorType
>
class
MandelObstacleRestrictor
:
public
ObstacleRestrictor
<
VectorType
>
class
MandelObstacleRestrictor
:
public
ObstacleRestrictor
<
VectorType
>
{
{
...
@@ -17,6 +25,7 @@ class MandelObstacleRestrictor : public ObstacleRestrictor<VectorType>
...
@@ -17,6 +25,7 @@ class MandelObstacleRestrictor : public ObstacleRestrictor<VectorType>
public
:
public
:
//! Compute coarse grid obstacles using the mandel restriction
virtual
void
restrict
(
const
std
::
vector
<
BoxConstraint
<
field_type
,
blocksize
>
>&
f
,
virtual
void
restrict
(
const
std
::
vector
<
BoxConstraint
<
field_type
,
blocksize
>
>&
f
,
std
::
vector
<
BoxConstraint
<
field_type
,
blocksize
>
>&
t
,
std
::
vector
<
BoxConstraint
<
field_type
,
blocksize
>
>&
t
,
const
Dune
::
BitSetVector
<
blocksize
>&
fHasObstacle
,
const
Dune
::
BitSetVector
<
blocksize
>&
fHasObstacle
,
...
...
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