Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pacxx-projectseminar-2019
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Vladyslav Kucher
pacxx-projectseminar-2019
Commits
de551e78
Commit
de551e78
authored
5 years ago
by
Jö Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
Check the number of iterations needed by newton
Closes:
#11
parent
0b6fbfd9
No related branches found
Branches containing commit
No related tags found
1 merge request
!15
Check the number of iterations needed by newton
Checking pipeline status
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
src/CMakeLists.txt
+2
-2
2 additions, 2 deletions
src/CMakeLists.txt
src/driver.hh
+1
-1
1 addition, 1 deletion
src/driver.hh
src/newton.hh
+1
-1
1 addition, 1 deletion
src/newton.hh
src/octagon.ini
+6
-1
6 additions, 1 deletion
src/octagon.ini
src/tutorial01.ini
+5
-0
5 additions, 0 deletions
src/tutorial01.ini
with
15 additions
and
5 deletions
src/CMakeLists.txt
+
2
−
2
View file @
de551e78
...
@@ -31,7 +31,7 @@ dune_add_test(
...
@@ -31,7 +31,7 @@ dune_add_test(
COMMAND sh
COMMAND sh
CMD_ARGS -exc
[[
CMD_ARGS -exc
[[
./solution01 -output.filename solution-matrix-free \
./solution01 -output.filename solution-matrix-free \
-solver.preconditioner.type none -
o
perator.type matrix-free
-solver.preconditioner.type none -
newton.O
perator.type matrix-free
cmp solution-matrix-free.vtu ref.vtu
cmp solution-matrix-free.vtu ref.vtu
]]
)
]]
)
...
@@ -64,7 +64,7 @@ dune_add_test(
...
@@ -64,7 +64,7 @@ dune_add_test(
COMMAND sh
COMMAND sh
CMD_ARGS -exc
[[
CMD_ARGS -exc
[[
./nitschesolution01 -output.filename nitschesolution-matrix-free \
./nitschesolution01 -output.filename nitschesolution-matrix-free \
-solver.preconditioner.type none -
o
perator.type matrix-free
-solver.preconditioner.type none -
newton.O
perator.type matrix-free
cmp nitschesolution-matrix-free.vtu nitscheref.vtu
cmp nitschesolution-matrix-free.vtu nitscheref.vtu
]]
)
]]
)
...
...
This diff is collapsed.
Click to expand it.
src/driver.hh
+
1
−
1
View file @
de551e78
...
@@ -100,7 +100,7 @@ namespace PPS {
...
@@ -100,7 +100,7 @@ namespace PPS {
newton
.
setMinLinearReduction
(
1e-4
);
// min. red. in lin. solve
newton
.
setMinLinearReduction
(
1e-4
);
// min. red. in lin. solve
newton
.
setMaxIterations
(
25
);
// limit number of its
newton
.
setMaxIterations
(
25
);
// limit number of its
newton
.
setLineSearchMaxIterations
(
10
);
// limit line search
newton
.
setLineSearchMaxIterations
(
10
);
// limit line search
newton
.
set
Operator
Params
(
ptree
.
sub
(
"
opera
to
r
"
));
// select operator type
newton
.
setParam
eter
s
(
ptree
.
sub
(
"
new
to
n
"
));
// solve nonlinear problem
// solve nonlinear problem
newton
.
apply
();
newton
.
apply
();
...
...
This diff is collapsed.
Click to expand it.
src/newton.hh
+
1
−
1
View file @
de551e78
...
@@ -764,7 +764,7 @@ namespace PPS
...
@@ -764,7 +764,7 @@ namespace PPS
*/
*/
void
setParameters
(
const
Dune
::
ParameterTree
&
param
)
void
setParameters
(
const
Dune
::
ParameterTree
&
param
)
{
{
typedef
typename
TstV
::
ElementT
ype
RFType
;
typedef
typename
TstV
::
field_t
ype
RFType
;
if
(
param
.
hasKey
(
"VerbosityLevel"
))
if
(
param
.
hasKey
(
"VerbosityLevel"
))
this
->
setVerbosityLevel
(
this
->
setVerbosityLevel
(
param
.
get
<
unsigned
int
>
(
"VerbosityLevel"
));
param
.
get
<
unsigned
int
>
(
"VerbosityLevel"
));
...
...
This diff is collapsed.
Click to expand it.
src/octagon.ini
+
6
−
1
View file @
de551e78
...
@@ -15,7 +15,12 @@ stab = 100
...
@@ -15,7 +15,12 @@ stab = 100
[problem]
[problem]
eta
=
100.0
eta
=
100.0
[operator]
[newton]
# The 3 is an empirical value, it is expected that the needed number of
# iterations may vary to some degree
MaxIterations
=
3
[newton.Operator]
type
=
matrix-free
type
=
matrix-free
[solver]
[solver]
...
...
This diff is collapsed.
Click to expand it.
src/tutorial01.ini
+
5
−
0
View file @
de551e78
...
@@ -15,6 +15,11 @@ stab = 100
...
@@ -15,6 +15,11 @@ stab = 100
[problem]
[problem]
eta
=
100.0
eta
=
100.0
[newton]
# The 3 is an empirical value, it is expected that the needed number of
# iterations may vary to some degree
MaxIterations
=
3
[solver]
[solver]
#preconditioner.type = none
#preconditioner.type = none
maxiter
=
100
maxiter
=
100
...
...
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