Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
a6613515
Commit
a6613515
authored
Nov 30, 2020
by
Praetorius, Simon
Browse files
Correct naming of operator in addOperator() function of LinearForm and BiLinearForm
parent
f9a94a4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
amdis/BiLinearForm.hpp
View file @
a6613515
...
...
@@ -98,7 +98,7 @@ namespace AMDiS
* \tparam ContextTag One of \ref tag::element_operator, \ref tag::intersection_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
* \tparam
Operator A (
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
...
...
@@ -107,23 +107,23 @@ namespace AMDiS
* [[expects: col is valid tree-path in ColBasis]]
* @{
**/
template
<
class
ContextTag
,
class
Exp
r
,
class
Row
,
class
Col
>
void
addOperator
(
ContextTag
contextTag
,
Exp
r
const
&
expr
,
Row
row
,
Col
col
);
template
<
class
ContextTag
,
class
Operato
r
,
class
Row
,
class
Col
>
void
addOperator
(
ContextTag
contextTag
,
Operato
r
const
&
op
,
Row
row
,
Col
col
);
// Add an operator to be assembled on the elements of the grid
template
<
class
Exp
r
,
class
Row
=
RootTreePath
,
class
Col
=
RootTreePath
>
void
addOperator
(
Exp
r
const
&
expr
,
Row
row
=
{},
Col
col
=
{})
template
<
class
Operato
r
,
class
Row
=
RootTreePath
,
class
Col
=
RootTreePath
>
void
addOperator
(
Operato
r
const
&
op
,
Row
row
=
{},
Col
col
=
{})
{
using
E
=
typename
RowBasis
::
LocalView
::
Element
;
addOperator
(
tag
::
element_operator
<
E
>
{},
expr
,
row
,
col
);
addOperator
(
tag
::
element_operator
<
E
>
{},
op
,
row
,
col
);
}
// Add an operator to be assembled on the intersections of the grid
template
<
class
Exp
r
,
class
Row
=
RootTreePath
,
class
Col
=
RootTreePath
>
void
addIntersectionOperator
(
Exp
r
const
&
expr
,
Row
row
=
{},
Col
col
=
{})
template
<
class
Operato
r
,
class
Row
=
RootTreePath
,
class
Col
=
RootTreePath
>
void
addIntersectionOperator
(
Operato
r
const
&
op
,
Row
row
=
{},
Col
col
=
{})
{
using
I
=
typename
RowBasis
::
LocalView
::
GridView
::
Intersection
;
addOperator
(
tag
::
intersection_operator
<
I
>
{},
expr
,
row
,
col
);
addOperator
(
tag
::
intersection_operator
<
I
>
{},
op
,
row
,
col
);
}
/// @}
...
...
amdis/LinearForm.hpp
View file @
a6613515
...
...
@@ -68,30 +68,30 @@ namespace AMDiS
* \tparam ContextTag One of \ref tag::element_operator, \ref tag::intersection_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
* \tparam
Operator
An
(
pre-
)
operator that can be bound to a gridView, or a valid
* GridOperator.
* \tparam path A tree-path for the Basis
*
* [[expects: path is valid tree-path in Basis]]
* @{
**/
template
<
class
ContextTag
,
class
Exp
r
,
class
TreePath
>
void
addOperator
(
ContextTag
contextTag
,
Exp
r
const
&
expr
,
TreePath
path
);
template
<
class
ContextTag
,
class
Operato
r
,
class
TreePath
>
void
addOperator
(
ContextTag
contextTag
,
Operato
r
const
&
op
,
TreePath
path
);
// Add an operator to be assembled on the elements of the grid
template
<
class
Exp
r
,
class
TreePath
=
RootTreePath
>
void
addOperator
(
Exp
r
const
&
expr
,
TreePath
path
=
{})
template
<
class
Operato
r
,
class
TreePath
=
RootTreePath
>
void
addOperator
(
Operato
r
const
&
op
,
TreePath
path
=
{})
{
using
E
=
typename
GlobalBasis
::
LocalView
::
Element
;
addOperator
(
tag
::
element_operator
<
E
>
{},
expr
,
path
);
addOperator
(
tag
::
element_operator
<
E
>
{},
op
,
path
);
}
// Add an operator to be assembled on the intersections of the grid
template
<
class
Exp
r
,
class
TreePath
=
RootTreePath
>
void
addIntersectionOperator
(
Exp
r
const
&
expr
,
TreePath
path
=
{})
template
<
class
Operato
r
,
class
TreePath
=
RootTreePath
>
void
addIntersectionOperator
(
Operato
r
const
&
op
,
TreePath
path
=
{})
{
using
I
=
typename
GlobalBasis
::
LocalView
::
GridView
::
Intersection
;
addOperator
(
tag
::
intersection_operator
<
I
>
{},
expr
,
path
);
addOperator
(
tag
::
intersection_operator
<
I
>
{},
op
,
path
);
}
/// @}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment