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
409fdb34
Commit
409fdb34
authored
Mar 21, 2019
by
Praetorius, Simon
Browse files
small corrections in MatrixView
parent
3d4c1fc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/amdis/common/FieldMatVec.inc.hpp
View file @
409fdb34
...
...
@@ -126,10 +126,10 @@ namespace MatVec {
return
C
;
}
template
<
class
T
,
int
N
>
class
MatrixView
<
DiagonalMatrix
<
T
,
N
>>
template
<
class
T
,
int
SIZE
>
class
MatrixView
<
DiagonalMatrix
<
T
,
SIZE
>>
{
using
Matrix
=
DiagonalMatrix
<
T
,
N
>
;
using
Matrix
=
DiagonalMatrix
<
T
,
SIZE
>
;
using
size_type
=
typename
Matrix
::
size_type
;
struct
RowView
...
...
@@ -145,7 +145,7 @@ namespace MatVec {
};
public:
MatrixView
(
Diagonal
Matrix
<
T
,
N
>
const
&
mat
)
MatrixView
(
Matrix
const
&
mat
)
:
mat_
(
mat
)
{}
...
...
@@ -166,7 +166,7 @@ namespace MatVec {
}
private:
Diagonal
Matrix
<
T
,
N
>
const
&
mat_
;
Matrix
const
&
mat_
;
};
}
// end namespace MatVec
...
...
src/amdis/localoperators/FirstOrderTestPartialTrial.hpp
View file @
409fdb34
...
...
@@ -69,7 +69,7 @@ namespace AMDiS
// The transposed inverse Jacobian of the map from the reference element to the element
const
auto
jacobian
=
contextGeo
.
geometry
().
jacobianInverseTransposed
(
local
);
auto
&&
jacobian_mat
=
as_matrix
(
jacobian
);
auto
&&
jacobian_mat
=
Dune
::
MatVec
::
as_matrix
(
jacobian
);
assert
(
jacobian
.
M
()
==
CG
::
dim
);
// The multiplicative factor in the integral transformation formula
...
...
src/amdis/localoperators/SecondOrderPartialTestPartialTrial.hpp
View file @
409fdb34
...
...
@@ -67,7 +67,7 @@ namespace AMDiS
// The transposed inverse Jacobian of the map from the reference element to the element
const
auto
jacobian
=
contextGeo
.
geometry
().
jacobianInverseTransposed
(
local
);
auto
&&
jacobian_mat
=
as_matrix
(
jacobian
);
auto
&&
jacobian_mat
=
Dune
::
MatVec
::
as_matrix
(
jacobian
);
// The multiplicative factor in the integral transformation formula
const
auto
factor
=
contextGeo
.
integrationElement
(
quad
[
iq
].
position
())
*
quad
[
iq
].
weight
();
...
...
Write
Preview
Markdown
is supported
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