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
fcf08d9b
Commit
fcf08d9b
authored
Aug 31, 2019
by
Lukas Weber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
safe sweep counts properly
parent
02a0d3ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/mc.cpp
src/mc.cpp
+2
-2
src/runner_pt.cpp
src/runner_pt.cpp
+1
-1
No files found.
src/mc.cpp
View file @
fcf08d9b
...
...
@@ -86,8 +86,8 @@ void mc::_write(const std::string &dir) {
if
(
pt_mode_
)
{
therm
*=
pt_sweeps_per_global_update_
;
}
g
.
write
(
"thermalization_sweeps"
,
std
::
min
(
sweep_
,
therm
_
));
g
.
write
(
"sweeps"
,
std
::
max
(
0
,
sweep_
-
therm
_
));
g
.
write
(
"thermalization_sweeps"
,
std
::
min
(
sweep_
,
therm
));
g
.
write
(
"sweeps"
,
std
::
max
(
0
,
sweep_
-
therm
));
}
rename
((
dir
+
".dump.h5.tmp"
).
c_str
(),
(
dir
+
".dump.h5"
).
c_str
());
...
...
src/runner_pt.cpp
View file @
fcf08d9b
...
...
@@ -188,7 +188,7 @@ void runner_pt_master::construct_pt_chains() {
int
target_sweeps
=
task
.
get
<
int
>
(
"sweeps"
);
if
(
chain
.
target_sweeps
>=
0
&&
target_sweeps
!=
chain
.
target_sweeps
)
{
throw
std
::
runtime_error
{
fmt
::
format
(
pt_sweep_error
,
chain
.
id
,
"target_sweeps"
,
i
,
chain
.
target_sweeps
,
target_sweeps
)};
fmt
::
format
(
pt_sweep_error
,
chain
.
id
,
i
,
"target_sweeps"
,
chain
.
target_sweeps
,
target_sweeps
)};
}
chain
.
target_sweeps
=
target_sweeps
;
...
...
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