Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
dumux-repositories
dumux
Commits
6bd32df6
Commit
6bd32df6
authored
5 years ago
by
Dennis Gläser
Committed by
Timo Koch
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[projector] improve docu
parent
43d71dae
No related branches found
No related tags found
1 merge request
!1609
Feature/projector
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/projection/projector.hh
+14
-9
14 additions, 9 deletions
dumux/discretization/projection/projector.hh
with
14 additions
and
9 deletions
dumux/discretization/projection/projector.hh
+
14
−
9
View file @
6bd32df6
...
@@ -67,9 +67,14 @@ public:
...
@@ -67,9 +67,14 @@ public:
//! delete default constructor
//! delete default constructor
Projector
()
=
delete
;
Projector
()
=
delete
;
//! Constructor
/*!
Projector
(
Matrix
&&
M
,
Matrix
&&
P
)
* \brief Constructor. Receives the mass and projection
:
M_
(
std
::
move
(
M
))
,
P_
(
std
::
move
(
P
))
* matrix that define the linear system describing
* the L2-projection from a function space into another.
*/
Projector
(
Matrix
&&
massMatrix
,
Matrix
&&
projectionMatrix
)
:
massMat_
(
std
::
move
(
massMatrix
))
,
projMat_
(
std
::
move
(
projectionMatrix
))
{}
{}
/*!
/*!
...
@@ -81,21 +86,21 @@ public:
...
@@ -81,21 +86,21 @@ public:
void
project
(
const
DomainSolution
&
u
,
TargetSolution
&
up
)
const
void
project
(
const
DomainSolution
&
u
,
TargetSolution
&
up
)
const
{
{
// be picky about size of u
// be picky about size of u
if
(
u
.
size
()
!=
P
_
.
M
())
if
(
u
.
size
()
!=
projMat
_
.
M
())
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Vector size mismatch"
);
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Vector size mismatch"
);
up
.
resize
(
M
_
.
N
());
up
.
resize
(
massMat
_
.
N
());
auto
rhs
=
up
;
auto
rhs
=
up
;
P
_
.
mv
(
u
,
rhs
);
projMat
_
.
mv
(
u
,
rhs
);
SSORCGBackend
solver
;
SSORCGBackend
solver
;
solver
.
solve
(
M
_
,
up
,
rhs
);
solver
.
solve
(
massMat
_
,
up
,
rhs
);
}
}
private
:
private
:
Matrix
M
_
;
Matrix
massMat
_
;
Matrix
P
_
;
Matrix
projMat
_
;
};
};
/*!
/*!
...
...
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