Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
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
Service Desk
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
TurTLE
TurTLE
Commits
9049bb26
Commit
9049bb26
authored
6 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
only compile if executable does not exist
parent
03d23da5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!23
WIP: Feature/use cmake
Pipeline
#45467
canceled
6 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bfps/_code.py
+3
-1
3 additions, 1 deletion
bfps/_code.py
with
3 additions
and
1 deletion
bfps/_code.py
+
3
−
1
View file @
9049bb26
...
@@ -193,6 +193,8 @@ class _code(_base):
...
@@ -193,6 +193,8 @@ class _code(_base):
def
compile_code
(
def
compile_code
(
self
,
self
,
no_debug
=
True
):
no_debug
=
True
):
if
os
.
path
.
exists
(
self
.
name
):
return
0
# compile code
# compile code
build_dir
=
'
bfps_build_
'
+
self
.
name
build_dir
=
'
bfps_build_
'
+
self
.
name
os
.
makedirs
(
build_dir
,
exist_ok
=
True
)
os
.
makedirs
(
build_dir
,
exist_ok
=
True
)
...
@@ -250,7 +252,7 @@ class _code(_base):
...
@@ -250,7 +252,7 @@ class _code(_base):
minutes
=
10
,
minutes
=
10
,
njobs
=
1
,
njobs
=
1
,
no_submit
=
False
,
no_submit
=
False
,
no_debug
=
Fals
e
):
no_debug
=
Tru
e
):
self
.
read_parameters
()
self
.
read_parameters
()
with
h5py
.
File
(
os
.
path
.
join
(
self
.
work_dir
,
self
.
simname
+
'
.h5
'
),
'
r
'
)
as
data_file
:
with
h5py
.
File
(
os
.
path
.
join
(
self
.
work_dir
,
self
.
simname
+
'
.h5
'
),
'
r
'
)
as
data_file
:
iter0
=
data_file
[
'
iteration
'
].
value
iter0
=
data_file
[
'
iteration
'
].
value
...
...
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