Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pySDC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atml-ati
pySDC
Commits
2b8ebc7f
Unverified
Commit
2b8ebc7f
authored
10 months ago
by
Thomas Baumann
Committed by
GitHub
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
TB: small fixes (#487)
parent
8420a478
No related branches found
No related tags found
No related merge requests found
Pipeline
#218684
passed
10 months ago
Stage: benchmark
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pySDC/core/controller.py
+1
-1
1 addition, 1 deletion
pySDC/core/controller.py
pySDC/implementations/convergence_controller_classes/interpolate_between_restarts.py
+1
-1
1 addition, 1 deletion
...rgence_controller_classes/interpolate_between_restarts.py
with
2 additions
and
2 deletions
pySDC/core/controller.py
+
1
−
1
View file @
2b8ebc7f
...
@@ -47,7 +47,7 @@ class Controller(object):
...
@@ -47,7 +47,7 @@ class Controller(object):
user_hooks
=
controller_params
.
get
(
'
hook_class
'
,
[])
user_hooks
=
controller_params
.
get
(
'
hook_class
'
,
[])
hook_classes
+=
user_hooks
if
type
(
user_hooks
)
==
list
else
[
user_hooks
]
hook_classes
+=
user_hooks
if
type
(
user_hooks
)
==
list
else
[
user_hooks
]
[
self
.
add_hook
(
hook
)
for
hook
in
hook_classes
]
[
self
.
add_hook
(
hook
)
for
hook
in
hook_classes
]
controller_params
[
'
hook_class
'
]
=
controller_params
.
get
(
'
hook_class
'
,
hook_classes
)
controller_params
[
'
hook_class
'
]
=
hook_classes
for
hook
in
self
.
hooks
:
for
hook
in
self
.
hooks
:
hook
.
pre_setup
(
step
=
None
,
level_number
=
None
)
hook
.
pre_setup
(
step
=
None
,
level_number
=
None
)
...
...
This diff is collapsed.
Click to expand it.
pySDC/implementations/convergence_controller_classes/interpolate_between_restarts.py
+
1
−
1
View file @
2b8ebc7f
...
@@ -56,7 +56,7 @@ class InterpolateBetweenRestarts(ConvergenceController):
...
@@ -56,7 +56,7 @@ class InterpolateBetweenRestarts(ConvergenceController):
for
m
in
range
(
len
(
level
.
u
)):
for
m
in
range
(
len
(
level
.
u
)):
level
.
u
[
m
][:]
=
self
.
status
.
u_inter
[
i
][
m
].
reshape
(
level
.
prob
.
init
[
0
])[:]
level
.
u
[
m
][:]
=
self
.
status
.
u_inter
[
i
][
m
].
reshape
(
level
.
prob
.
init
[
0
])[:]
level
.
f
[
m
][:]
=
self
.
status
.
f_inter
[
i
][
m
].
reshape
(
level
.
prob
.
init
[
0
]
)[:]
level
.
f
[
m
][:]
=
self
.
status
.
f_inter
[
i
][
m
].
reshape
(
level
.
f
[
m
].
shape
)[:]
# reset the status variables
# reset the status variables
self
.
status
.
perform_interpolation
=
False
self
.
status
.
perform_interpolation
=
False
...
...
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