Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
dumux-repositories
dumux
Commits
3743e4d7
Commit
3743e4d7
authored
7 years ago
by
Bernd Flemisch
Browse files
Options
Downloads
Patches
Plain Diff
[newton] use new NewtonSolver in incompressible 2p fv test
parent
cfefa2c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!795
[newton] use new NewtonSolver in incompressible 2p fv test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/porousmediumflow/2p/implicit/incompressible/test_2p_fv.cc
+5
-8
5 additions, 8 deletions
...porousmediumflow/2p/implicit/incompressible/test_2p_fv.cc
with
5 additions
and
8 deletions
test/porousmediumflow/2p/implicit/incompressible/test_2p_fv.cc
+
5
−
8
View file @
3743e4d7
...
@@ -41,8 +41,7 @@
...
@@ -41,8 +41,7 @@
#include
<dumux/common/defaultusagemessage.hh>
#include
<dumux/common/defaultusagemessage.hh>
#include
<dumux/linear/amgbackend.hh>
#include
<dumux/linear/amgbackend.hh>
#include
<dumux/nonlinear/newtonmethod.hh>
#include
<dumux/nonlinear/newtonsolver.hh>
#include
<dumux/nonlinear/newtoncontroller.hh>
#include
<dumux/assembly/fvassembler.hh>
#include
<dumux/assembly/fvassembler.hh>
#include
<dumux/assembly/diffmethod.hh>
#include
<dumux/assembly/diffmethod.hh>
...
@@ -163,10 +162,8 @@ int main(int argc, char** argv) try
...
@@ -163,10 +162,8 @@ int main(int argc, char** argv) try
auto
linearSolver
=
std
::
make_shared
<
LinearSolver
>
(
leafGridView
,
fvGridGeometry
->
dofMapper
());
auto
linearSolver
=
std
::
make_shared
<
LinearSolver
>
(
leafGridView
,
fvGridGeometry
->
dofMapper
());
// the non-linear solver
// the non-linear solver
using
NewtonController
=
Dumux
::
NewtonController
<
Scalar
>
;
using
NewtonSolver
=
Dumux
::
NewtonSolver
<
Assembler
,
LinearSolver
>
;
using
NewtonMethod
=
Dumux
::
NewtonMethod
<
NewtonController
,
Assembler
,
LinearSolver
>
;
NewtonSolver
nonLinearSolver
(
assembler
,
linearSolver
);
auto
newtonController
=
std
::
make_shared
<
NewtonController
>
(
timeLoop
);
NewtonMethod
nonLinearSolver
(
newtonController
,
assembler
,
linearSolver
);
// time loop
// time loop
timeLoop
->
start
();
do
timeLoop
->
start
();
do
...
@@ -206,8 +203,8 @@ int main(int argc, char** argv) try
...
@@ -206,8 +203,8 @@ int main(int argc, char** argv) try
// report statistics of this time step
// report statistics of this time step
timeLoop
->
reportTimeStep
();
timeLoop
->
reportTimeStep
();
// set new dt as suggested by
n
ewton
contr
ol
l
er
// set new dt as suggested by
the N
ewton
s
ol
v
er
timeLoop
->
setTimeStepSize
(
n
ewtonContr
ol
l
er
->
suggestTimeStepSize
(
timeLoop
->
timeStepSize
()));
timeLoop
->
setTimeStepSize
(
n
onLinearS
ol
v
er
.
suggestTimeStepSize
(
timeLoop
->
timeStepSize
()));
}
while
(
!
timeLoop
->
finished
());
}
while
(
!
timeLoop
->
finished
());
...
...
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