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
dg
dg
Commits
7a28cfae
Commit
7a28cfae
authored
Dec 02, 2016
by
David Vincent
Browse files
modifying the tolerances of newton solver for implicit time scheme: relative tolerance is now 1e-8
parent
06ed68ad
Pipeline
#1496
passed with stage
in 29 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dgpy/scripts/slim.py
View file @
7a28cfae
...
...
@@ -815,7 +815,7 @@ class Loop:
equation
.
_temporal_solver
=
dgpy
.
dgDIRK
(
equation
.
_equation
,
equation
.
_sys
.
dof_manager
,
2
)
equation
.
_temporal_solver
.
getNewton
().
setVerb
(
10
)
equation
.
_temporal_solver
.
getNewton
().
setAtol
(
1e-8
)
equation
.
_temporal_solver
.
getNewton
().
setRtol
(
1e-
4
)
equation
.
_temporal_solver
.
getNewton
().
setRtol
(
1e-
8
)
elif
equation
.
_temporal_scheme
==
"multirate"
:
equation
.
_temporal_solver
=
dgpy
.
dgMultirateERK
(
equation
.
_domain
.
_groups
,
equation
.
_equation
,
dgpy
.
ERK_22_C
)
equation
.
_dt_mr
=
equation
.
_temporal_solver
.
splitGroupsForMultirate
(
15
,
equation
.
_solution
,
[
equation
.
_solution
,
equation
.
_domain
.
_bath
])
...
...
@@ -853,7 +853,7 @@ class Loop:
equation
.
_temporal_solver
=
dgpy
.
dgMDIRK
(
equation
.
_equation
,
equation
.
_sys_tracer1
.
dof_manager
,
equation
.
_sys_tracer2
.
dof_manager
,
2
)
equation
.
_temporal_solver
.
getNewton
().
setVerb
(
10
)
equation
.
_temporal_solver
.
getNewton
().
setAtol
(
1.e-8
)
equation
.
_temporal_solver
.
getNewton
().
setRtol
(
1e-
4
)
equation
.
_temporal_solver
.
getNewton
().
setRtol
(
1e-
8
)
else
:
dgpy
.
Msg
.
Fatal
(
"Temporal scheme '"
+
equation
.
_temporal_scheme
+
"' not implemented!"
)
self
.
_number_of_tracer
+=
1
...
...
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