Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
load_leveller
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukas Weber
load_leveller
Commits
1702f55b
Commit
1702f55b
authored
Aug 21, 2019
by
Lukas Weber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make jobstatus work for pt and change parameter file name
parent
77c0d7da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
python/loadleveller/jobfile.py
python/loadleveller/jobfile.py
+2
-2
python/loadleveller/jobstatus.py
python/loadleveller/jobstatus.py
+4
-2
src/mc.cpp
src/mc.cpp
+0
-1
No files found.
python/loadleveller/jobfile.py
View file @
1702f55b
...
...
@@ -32,10 +32,10 @@ class JobFile:
except
OSError
as
e
:
if
e
.
errno
!=
errno
.
EEXIST
:
raise
job_input_filename
=
os
.
path
.
join
(
datadir
,
'parameters.y
a
ml'
)
job_input_filename
=
os
.
path
.
join
(
datadir
,
'parameters.yml'
)
with
open
(
job_input_filename
,
'w'
)
as
f
:
f
.
write
(
self
.
raw_jobfile
)
except
Exception
as
e
:
raise
JobFileGenError
(
'Could not write parameters.y
a
ml: {}'
.
format
(
e
))
raise
JobFileGenError
(
'Could not write parameters.yml: {}'
.
format
(
e
))
return
job_input_filename
python/loadleveller/jobstatus.py
View file @
1702f55b
...
...
@@ -35,8 +35,10 @@ class JobProgress:
tp
.
num_runs
+=
1
with
h5py
.
File
(
runfile
,
'r'
)
as
f
:
tp
.
therm_sweeps
+=
f
[
'/thermalization_sweeps'
][
0
]
tp
.
sweeps
+=
f
[
'/sweeps'
][
0
]
-
f
[
'/thermalization_sweeps'
][
0
]
sweeps
=
f
[
'/sweeps'
][
0
]
//
jobfile
.
tasks
[
task
].
get
(
'pt_sweeps_per_global_update'
,
1
)
tp
.
therm_sweeps
+=
min
(
sweeps
,
tp
.
target_therm
)
tp
.
sweeps
+=
sweeps
-
tp
.
therm_sweeps
if
tp
.
sweeps
<
tp
.
target_sweeps
:
...
...
src/mc.cpp
View file @
1702f55b
...
...
@@ -93,7 +93,6 @@ void mc::_write(const std::string &dir) {
g
.
write
(
"max_meas_time"
,
max_meas_time_
);
g
.
write
(
"sweeps"
,
sweep_
);
g
.
write
(
"thermalization_sweeps"
,
std
::
min
(
therm_
,
sweep_
));
// only for convenience
}
rename
((
dir
+
".dump.h5.tmp"
).
c_str
(),
(
dir
+
".dump.h5"
).
c_str
());
...
...
Write
Preview
Markdown
is supported
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