Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
8401249b
Commit
8401249b
authored
10 years ago
by
Francois Henrotte
Browse files
Options
Downloads
Patches
Plain Diff
function willCompute(client) added
parent
2248d568
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/onelab/python/onelab.py
+9
-3
9 additions, 3 deletions
contrib/onelab/python/onelab.py
with
9 additions
and
3 deletions
contrib/onelab/python/onelab.py
+
9
−
3
View file @
8401249b
...
...
@@ -517,7 +517,7 @@ class client :
choices
=
solFiles
,
readOnly
=
1
)
for
i
in
solFiles
:
if
not
self
.
fileExists
(
i
)
:
self
.
setChanged
(
client
,
T
rue
)
self
.
setChanged
(
client
,
'
t
rue
'
)
return
solFiles
def
needsCompute
(
self
,
client
)
:
...
...
@@ -525,13 +525,19 @@ class client :
# Otherwise, stop using restored solutions when the client elmer has changed
if
self
.
useRestoredSolution
()
==
2
:
# we have just loaded a database
self
.
setRestoredSolution
(
1
)
self
.
setChanged
(
client
,
0
)
# do not compute
self
.
setChanged
(
client
,
'
false
'
)
# do not compute
else
:
if
self
.
isChanged
(
client
):
self
.
setRestoredSolution
(
0
)
return
True
return
False
def
willCompute
(
self
,
client
)
:
# Inform user about the value of needsCompute
if
self
.
useRestoredSolution
()
==
2
:
# special value
return
False
else
:
return
True
if
self
.
isChanged
(
client
)
else
False
def
useRestoredSolution
(
self
)
:
return
self
.
getNumber
(
'
0Metamodel/9Use restored solution
'
)
...
...
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