Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux-lecture
Commits
a3aa309d
Commit
a3aa309d
authored
Apr 15, 2020
by
Kilian Weishaupt
Committed by
Timo Koch
Apr 15, 2020
Browse files
Fix compiler errors due to removal of deprecated upstream code
parent
59362b34
Changes
20
Hide whitespace changes
Inline
Side-by-side
lecture/efm/1p2c_2p_2p2c/lens1p2cexercise3.cc
View file @
a3aa309d
...
...
@@ -157,7 +157,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -170,9 +170,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/efm/1p2c_2p_2p2c/lens2p2cexercise3.cc
View file @
a3aa309d
...
...
@@ -173,7 +173,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -186,9 +186,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/efm/1p2c_2p_2p2c/lens2pexercise3.cc
View file @
a3aa309d
...
...
@@ -174,7 +174,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -187,9 +187,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/efm/1p2cvs2p/lens1p2cexercise1.cc
View file @
a3aa309d
...
...
@@ -161,7 +161,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -174,9 +174,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/efm/1p2cvs2p/lens2pexercise1.cc
View file @
a3aa309d
...
...
@@ -180,7 +180,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -193,9 +193,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/efm/2p/lens2pexercise2.cc
View file @
a3aa309d
...
...
@@ -179,7 +179,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -192,9 +192,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/co2plume/co2plumeshapeexercise.cc
View file @
a3aa309d
...
...
@@ -123,7 +123,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
ILU0BiCGSTABBackend
;
...
...
@@ -137,9 +137,6 @@ int main(int argc, char** argv) try
timeLoop
->
start
();
while
(
!
timeLoop
->
finished
())
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/columnxylene/columnxyleneexercise.cc
View file @
a3aa309d
...
...
@@ -35,6 +35,7 @@
#include
<dumux/common/dumuxmessage.hh>
#include
<dumux/common/defaultusagemessage.hh>
#include
<dumux/linear/linearsolvertraits.hh>
#include
<dumux/linear/seqsolverbackend.hh>
#include
<dumux/nonlinear/newtonsolver.hh>
...
...
@@ -140,7 +141,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -154,9 +155,6 @@ int main(int argc, char** argv) try
timeLoop
->
start
();
while
(
!
timeLoop
->
finished
())
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/convectivemixing/convmixexercise.cc
View file @
a3aa309d
...
...
@@ -129,7 +129,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
ILU0BiCGSTABBackend
;
...
...
@@ -141,9 +141,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/fractures/fractures.cc
View file @
a3aa309d
...
...
@@ -192,7 +192,8 @@ int main(int argc, char** argv) try
std
::
make_tuple
(
matrixFvGridGeometry
,
fractureFvGridGeometry
),
std
::
make_tuple
(
matrixGridVariables
,
fractureGridVariables
),
couplingManager
,
timeLoop
);
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
ILU0BiCGSTABBackend
;
...
...
@@ -219,9 +220,6 @@ int main(int argc, char** argv) try
matrixProblem
->
setTime
(
timeLoop
->
time
()
+
timeLoop
->
timeStepSize
());
fractureProblem
->
setTime
(
timeLoop
->
time
()
+
timeLoop
->
timeStepSize
());
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
newtonSolver
->
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/fuelcell/fuelcell.cc
View file @
a3aa309d
...
...
@@ -161,7 +161,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -174,9 +174,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/heatpipe/heatpipe.cc
View file @
a3aa309d
...
...
@@ -118,7 +118,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
ILU0BiCGSTABBackend
;
...
...
@@ -134,9 +134,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/heavyoil/sagd/sagd.cc
View file @
a3aa309d
...
...
@@ -145,7 +145,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
Dumux
::
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -158,9 +158,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/heavyoil/sagdcyclic/sagd_cyclic.cc
View file @
a3aa309d
...
...
@@ -147,7 +147,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
Dumux
::
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -160,9 +160,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/heavyoil/sagdcyclichyst/sagd_cyclic_hyst.cc
View file @
a3aa309d
...
...
@@ -147,7 +147,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
Dumux
::
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -160,9 +160,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/henryproblem/henry1p2c/henry1p2c.cc
View file @
a3aa309d
...
...
@@ -146,7 +146,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
ILU0BiCGSTABBackend
;
...
...
@@ -158,9 +158,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/henryproblem/henry2p/henry2p.cc
View file @
a3aa309d
...
...
@@ -38,6 +38,7 @@
#include
<dumux/common/dumuxmessage.hh>
#include
<dumux/common/defaultusagemessage.hh>
#include
<dumux/linear/linearsolvertraits.hh>
#include
<dumux/linear/seqsolverbackend.hh>
#include
<dumux/nonlinear/newtonsolver.hh>
...
...
@@ -148,7 +149,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
FVGridGeometry
>>
;
...
...
@@ -161,9 +162,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
lecture/mm/naplinfiltration/3p/naplinfiltration3p.cc
View file @
a3aa309d
...
...
@@ -158,7 +158,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
ILU0BiCGSTABBackend
;
...
...
@@ -174,9 +174,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// set the end of the next time step as time in the problem to control
// the boundary conditions for the implicit Euler scheme
problem
->
setTime
(
timeLoop
->
time
()
+
timeLoop
->
timeStepSize
());
...
...
lecture/mm/naplinfiltration/3p3c/naplinfiltration3p3c.cc
View file @
a3aa309d
...
...
@@ -152,7 +152,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
ILU0BiCGSTABBackend
;
...
...
@@ -168,9 +168,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// set the end of the next time step as time in the problem to control
// the boundary conditions for the implicit Euler scheme
problem
->
setTime
(
timeLoop
->
time
()
+
timeLoop
->
timeStepSize
());
...
...
lecture/mm/remediationscenarios/remediationscenariosexercise.cc
View file @
a3aa309d
...
...
@@ -156,7 +156,7 @@ int main(int argc, char** argv) try
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
DiffMethod
::
numeric
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
Dumux
::
ILU0BiCGSTABBackend
;
...
...
@@ -170,9 +170,6 @@ int main(int argc, char** argv) try
timeLoop
->
start
();
while
(
!
timeLoop
->
finished
())
{
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
// solve the non-linear system with time step control
nonLinearSolver
.
solve
(
x
,
*
timeLoop
);
...
...
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