Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
amdis
amdis-core
Commits
99499925
Commit
99499925
authored
5 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation of (Bi)LinearForm
parent
460a9b12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!113
Cleanup the constructors of MatrixBase, VectorBase, BiLinearForm, and LinearForm
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/amdis/BiLinearForm.hpp
+14
-11
14 additions, 11 deletions
src/amdis/BiLinearForm.hpp
src/amdis/LinearForm.hpp
+8
-5
8 additions, 5 deletions
src/amdis/LinearForm.hpp
with
22 additions
and
16 deletions
src/amdis/BiLinearForm.hpp
+
14
−
11
View file @
99499925
...
...
@@ -45,7 +45,9 @@ namespace AMDiS
using
ElementMatrix
=
FlatMatrix
<
CoefficientType
>
;
public:
/// Constructor. Wraps the reference into a non-destroying shared_ptr or moves the basis into a new shared_ptr.
/// Constructor. Wraps the reference into a non-destroying shared_ptr or moves
/// the basis into a new shared_ptr. The additional arguments can be the communication
/// object. If not provided, a new communication is created.
template
<
class
RB_
,
class
CB_
,
class
...
Args
>
BiLinearForm
(
RB_
&&
rowBasis
,
CB_
&&
colBasis
,
Args
&&
...
args
)
:
Super
(
FWD
(
rowBasis
),
FWD
(
colBasis
),
FWD
(
args
)...)
...
...
@@ -72,30 +74,31 @@ namespace AMDiS
* functions the operator is applied to.
*
* \tparam ContextTag One of \ref tag::element_operator, \ref tag::intersection_operator
* or \ref tag::boundary_operator indicating where to assemble this operator.
* or \ref tag::boundary_operator indicating where to assemble
* this operator.
* \tparam Expr An pre-operator that can be bound to a gridView, or a valid
*
GridOperator.
* \tparam row A tree-path for the RowBasis
* \tparam col A tree-path for the ColBasis
* GridOperator.
* \tparam row
A tree-path for the RowBasis
* \tparam col
A tree-path for the ColBasis
*
* [[expects: row is valid tree-path in RowBasis]]
* [[expects: col is valid tree-path in ColBasis]]
* @{
**/
template
<
class
ContextTag
,
class
Expr
,
class
Row
TreePath
,
class
Col
TreePath
>
void
addOperator
(
ContextTag
contextTag
,
Expr
const
&
expr
,
Row
TreePath
row
,
Col
TreePath
col
);
template
<
class
ContextTag
,
class
Expr
,
class
Row
,
class
Col
>
void
addOperator
(
ContextTag
contextTag
,
Expr
const
&
expr
,
Row
row
,
Col
col
);
// Add an operator to be assembled on the elements of the grid
template
<
class
Expr
,
class
Row
TreePath
=
RootTreePath
,
class
Col
TreePath
=
RootTreePath
>
void
addOperator
(
Expr
const
&
expr
,
Row
TreePath
row
=
{},
Col
TreePath
col
=
{})
template
<
class
Expr
,
class
Row
=
RootTreePath
,
class
Col
=
RootTreePath
>
void
addOperator
(
Expr
const
&
expr
,
Row
row
=
{},
Col
col
=
{})
{
using
E
=
typename
RowLocalView
::
Element
;
addOperator
(
tag
::
element_operator
<
E
>
{},
expr
,
row
,
col
);
}
// Add an operator to be assembled on the intersections of the grid
template
<
class
Expr
,
class
Row
TreePath
=
RootTreePath
,
class
Col
TreePath
=
RootTreePath
>
void
addIntersectionOperator
(
Expr
const
&
expr
,
Row
TreePath
row
=
{},
Col
TreePath
col
=
{})
template
<
class
Expr
,
class
Row
=
RootTreePath
,
class
Col
=
RootTreePath
>
void
addIntersectionOperator
(
Expr
const
&
expr
,
Row
row
=
{},
Col
col
=
{})
{
using
I
=
typename
RowLocalView
::
GridView
::
Intersection
;
addOperator
(
tag
::
intersection_operator
<
I
>
{},
expr
,
row
,
col
);
...
...
This diff is collapsed.
Click to expand it.
src/amdis/LinearForm.hpp
+
8
−
5
View file @
99499925
...
...
@@ -42,6 +42,8 @@ namespace AMDiS
public:
/// Constructor. Stores the shared_ptr of the basis and creates a new DataTransfer.
/// The additional arguments can be the communication object. If not provided,
/// a new communication is created.
template
<
class
GB_
,
class
...
Args
,
Dune
::
disableCopyMove
<
Self
,
GB_
,
Args
...>
=
0
>
explicit
LinearForm
(
GB_
&&
basis
,
Args
&&
...
args
)
...
...
@@ -65,14 +67,15 @@ namespace AMDiS
* Stores an operator in a list that gets assembled during a call to \ref assemble().
* The operator may be assigned to a specific context, i.e. either an element
* operator, an intersection operator, or a boundary operator.
* The \p
row and \p col
tree paths specify the sub-basis for test
and trial
*
functions the operator
is applied to.
* The \p
path
tree paths specify the sub-basis for test
functions the operator
* is applied to.
*
* \tparam ContextTag One of \ref tag::element_operator, \ref tag::intersection_operator
* or \ref tag::boundary_operator indicating where to assemble this operator.
* or \ref tag::boundary_operator indicating where to assemble
* this operator.
* \tparam Expr An pre-operator that can be bound to a gridView, or a valid
*
GridOperator.
* \tparam path A tree-path for the Basis
* GridOperator.
* \tparam path
A tree-path for the Basis
*
* [[expects: path is valid tree-path in Basis]]
* @{
...
...
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