Commit b166b53f authored by Lukas Weber's avatar Lukas Weber

fix need restart for thermalization only stuff

parent 7a039b79
......@@ -41,7 +41,7 @@ class JobProgress:
tp.sweeps += max(0,sweeps - tp.target_therm)
if tp.sweeps < tp.target_sweeps:
if tp.therm_sweeps < tp.target_therm or tp.sweeps < tp.target_sweeps:
self.restart = True
self.progress.append(tp)
......
......@@ -516,6 +516,7 @@ void runner_pt_master::react() {
pt_param_optimization(chain, chain_run);
}
std::fill(chain_run.weight_ratios.begin(), chain_run.weight_ratios.end(), -1);
for(int target = 0; target < chain_len_; target++) {
int target_rank = rank_section * chain_len_ + target + 1;
int pos = chain_run.rank_to_pos[target];
......@@ -545,7 +546,6 @@ void runner_pt_master::react() {
}
pt_global_update(chain, chain_run);
std::fill(chain_run.weight_ratios.begin(), chain_run.weight_ratios.end(), -1);
for(int target = 0; target < chain_len_; target++) {
int new_task_id = chain.task_ids[chain_run.rank_to_pos[target]];
......
......@@ -28,7 +28,6 @@ struct pt_chain {
void checkpoint_write(const iodump::group &g);
void clear_histograms();
int histogram_entries();
std::tuple<double, double> optimize_params();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment