Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
b1b44e98
Commit
b1b44e98
authored
Mar 04, 2021
by
niklas.baumgarten
Browse files
replacing deprecated functions
parent
69a05e93
Changes
2
Hide whitespace changes
Inline
Side-by-side
mlmc/src/pdesolver/assembling/DGReactionAssemble.cpp
View file @
b1b44e98
...
...
@@ -22,7 +22,7 @@ void DGReactionAssemble::Dirichlet(double t, Vector &u) const {
}
}
}
DirichletConsistent
(
u
);
u
.
DirichletConsistent
();
}
double
DGReactionAssemble
::
Residual
(
double
t
,
const
Vector
&
u
,
Vector
&
r
)
const
{
...
...
@@ -134,7 +134,7 @@ double DGReactionAssemble::Residual(double t, const Vector &u, Vector &r) const
}
}
}
Collect
(
r
);
r
.
Collect
();
return
r
.
norm
();
}
...
...
@@ -294,7 +294,7 @@ void DGReactionAssemble::SetInitialValue(Vector &u) const {
u
(
r
,
j
)
=
problem
->
Concentration
(
0
,
lambda
*
c
()
+
(
1
-
lambda
)
*
elem
.
NodalPoint
(
j
));
}
Accumulate
(
u
);
u
.
Accumulate
();
}
double
DGReactionAssemble
::
Mass
(
const
Vector
&
u
)
const
{
...
...
mlmc/src/pdesolver/assembling/DGTransportAssemble.cpp
View file @
b1b44e98
...
...
@@ -233,7 +233,7 @@ void DGLinearTransportAssemble::SetExactSolution(double t, Vector &u_ex) const {
for
(
int
j
=
0
;
j
<
Elem
.
NodalPoints
();
++
j
)
u_ex
(
r
,
j
)
=
problem
->
Solution
(
t
,
Elem
.
NodalPoint
(
j
));
}
Accumulate
(
u_ex
);
u_ex
.
Accumulate
();
}
void
DGNonLinearTransportAssemble
::
AssembleTransfer
(
TransferMatrix
&
TM
)
const
{
...
...
@@ -267,7 +267,7 @@ void DGLinearTransportAssemble::SetInitialValue(Vector &u) const {
u
(
r
,
j
)
=
problem
->
Solution
(
0
,
lambda
*
c
()
+
(
1
-
lambda
)
*
Elem
.
NodalPoint
(
j
));
}
Accumulate
(
u
);
u
.
Accumulate
();
}
void
DGLinearTransportAssemble
::
PrintMatrixInfo
(
Matrix
&
A
,
int
diagonal
)
const
{
...
...
@@ -375,7 +375,7 @@ double DGNonLinearTransportAssemble::Residual(const Vector &u, Vector &b) const
b
-=
dt_
*
rhs
;
b
.
ClearDirichletValues
();
Collect
(
b
);
b
.
Collect
();
delete
fluxMatrix
;
delete
massMatrix
;
return
b
.
norm
();
...
...
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