Skip to content

Commit

Permalink
#2130: Save phases metadata to file
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed May 4, 2023
1 parent 0ac39b1 commit 61efa82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vt/vrt/collection/balance/node_lb_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ void NodeLBData::createLBDataFile() {
}
metadata["type"] = "LBDatafile";
metadata["rank"] = theContext()->getNode();
auto phasesMetadata = lb_data_->metadataToJson();
if(phasesMetadata) {
metadata["phases"] = *phasesMetadata;
}
lb_data_writer_ = std::make_unique<JSONAppender>(
"phases", metadata, file_name, compress
);
Expand Down

0 comments on commit 61efa82

Please sign in to comment.