Skip to content
Snippets Groups Projects
Commit c8f1c0a3 authored by Jonas Greitemann's avatar Jonas Greitemann
Browse files

Use stored merged_parameters in *-segregate-phases

Rather than locating the clone files based on the `merge` parameter and
constructing the sweep policies of the merged clones directly from their
parameters, we now use the `merged_parameters` which are stored within
the *.out.h5. This way, the graph analysis is yet again dependent on
only the *.out.h5, meaning that it may be performed locally from the
downloaded out file, while the much larges clones remain on the cluster.
parent 4bf6fe43
No related branches found
No related tags found
No related merge requests found
......@@ -164,10 +164,11 @@ int main(int argc, char** argv)
process_sweep(parameters);
// push points from sweep policies of merged clones
std::stringstream merge_is{parameters["merge"].as<std::string>()};
for (std::string name; std::getline(merge_is, name, ':');) {
const char* argv[] = {"", name.c_str()};
alps::params merged_params(2, argv);
alps::hdf5::archive ar(alps::origin_name(parameters), "r");
std::string path;
for (size_t i = 0; ar.is_group(path = "/merged_parameters/" + std::to_string(i)); ++i) {
alps::params merged_params;
ar[path] >> merged_params;
process_sweep(merged_params);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment