Commit cf45f2da authored by Sonja Happ's avatar Sonja Happ

fix a bug in the determination of number of adjacent nodes for multiple...

fix a bug in the determination of number of adjacent nodes for multiple computing nodes involved in a simulation
parent 4791076e
......@@ -226,9 +226,9 @@ void Model_creator::determine_number_of_adjacent_nodes(){
}
}
if(mc_rank == world_size - 1) {
if(mc_rank == mc_worldsize - 1) {
unsigned long M = scenario_file_el_grid_content->shape()[1];
for(unsigned int i = world_size * edges_per_rank; i < M; i++){
for(unsigned int i = mc_worldsize * edges_per_rank; i < M; i++){
//boost::array<boost::multi_array<int, 2>::index, 2> id1_index = {{0, i}};
//boost::array<boost::multi_array<int, 2>::index, 2> id2_index = {{1, i}};
......@@ -352,7 +352,7 @@ void Model_creator::determine_fork_nodes() {
void Model_creator::depth_search_hop(int v, unsigned int previous_depth,
unsigned int previous_hop_depth, int previous_workitem, bool lossless_cable,
std::vector<int> seen_forknodes, std::vector<int> seen_workitems, bool visited_nodes[]){
bool previous_cable_lossless = lossless_cable;
bool next_cable_lossless = false;
......
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