Skip to content

Commit

Permalink
#8: try to fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly committed Sep 4, 2024
1 parent e88972a commit dc99b5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vt-tv/utility/parse_render.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ void ParseRender::parseAndRender(PhaseType phase_id, std::unique_ptr<Info> info)
input_dir += '/';
}

int64_t n_ranks = config["input"]["n_ranks"].as<int64_t>(); // signed for omp parallel for

// Read JSON file and input data
std::filesystem::path p = input_dir;
std::string path = std::filesystem::absolute(p).string();
Expand Down Expand Up @@ -113,6 +111,7 @@ void ParseRender::parseAndRender(PhaseType phase_id, std::unique_ptr<Info> info)
info->addInfo(tmpInfo->getObjectInfo(), tmpInfo->getRank(rank));
}
}
int64_t n_ranks = config["input"]["n_ranks"].as<int64_t>(); // signed for omp parallel for
assert(info->getNumRanks() == static_cast<std::size_t>(n_ranks));
fmt::print("Num ranks={}\n", info->getNumRanks());
}
Expand Down

0 comments on commit dc99b5b

Please sign in to comment.