Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
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
particle_methods
hysop
Commits
f9219389
Commit
f9219389
authored
4 years ago
by
EXT Jean-Matthieu Etancelin
Browse files
Options
Downloads
Patches
Plain Diff
fix problem
parent
cd3aa06b
No related branches found
No related tags found
2 merge requests
!24
Resolve "Add python3.x support"
,
!15
WIP: Resolve "HySoP with tasks"
Pipeline
#47578
failed
4 years ago
Stage: env
Stage: configure
Stage: build
Stage: install
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hysop/problem.py
+3
-2
3 additions, 2 deletions
hysop/problem.py
with
3 additions
and
2 deletions
hysop/problem.py
+
3
−
2
View file @
f9219389
import
datetime
import
sys
from
hysop.constants
import
Backend
,
MemoryOrdering
from
hysop.constants
import
Backend
,
MemoryOrdering
,
HYSOP_DEFAULT_TASK_ID
from
hysop.tools.string_utils
import
vprint_banner
from
hysop.tools.contexts
import
Timer
from
hysop.tools.decorators
import
debug
...
...
@@ -30,7 +30,8 @@ class Problem(ComputationalGraph):
for
node
in
ops
if
hasattr
(
node
,
'
impl_kwds
'
)
and
'
variables
'
in
node
.
impl_kwds
for
f
in
node
.
impl_kwds
[
'
variables
'
].
keys
()])
if
given_ops_have_tasks
:
if
len
(
set
(
ops_tasks
))
==
1
and
ops_tasks
[
0
]
==
self
.
mpi_params
.
task_id
:
pb_task_id
=
HYSOP_DEFAULT_TASK_ID
if
self
.
mpi_params
is
None
else
self
.
mpi_params
.
task_id
if
len
(
set
(
ops_tasks
))
==
1
and
ops_tasks
[
0
]
==
pb_task_id
:
# Intertask is not needed this is a single task-problem
given_ops_have_tasks
=
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