You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*--- array containing the starting indices for the allgatherv operation*/
260
-
int disps[SU2_MPI::GetSize()];
261
-
262
-
for(auto x = 0; x < SU2_MPI::GetSize(); x++){
263
-
if(x == 0){
264
-
disps[x] = 0;
265
-
}else{
266
-
disps[x] = disps[x-1]+LocalCoordsSizes[x-1];
267
-
}
268
-
}
269
-
270
-
/*--- making global control node coordinates available on all processes ---*/
271
-
SU2_MPI::Allgatherv(LocalCoords.data(), localCoordsSize, MPI_DOUBLE, GlobalCoords.data(), LocalCoordsSizes, disps, MPI_DOUBLE, SU2_MPI::GetComm()); //TODO local coords can be deleted after this operation
272
226
273
-
#endif
274
227
275
228
if(rank == MASTER_NODE){
276
229
/*--- Initialization of the interpolation matrix ---*/
/*--- array containing the starting indices for the allgatherv operation*/
592
+
int disps[SU2_MPI::GetSize()];
593
+
594
+
for(auto x = 0; x < SU2_MPI::GetSize(); x++){
595
+
if(x == 0){
596
+
disps[x] = 0;
597
+
}else{
598
+
disps[x] = disps[x-1]+LocalCoordsSizes[x-1];
599
+
}
600
+
}
601
+
602
+
/*--- making global control node coordinates available on all processes ---*/
603
+
SU2_MPI::Allgatherv(LocalCoords.data(), localCoordsSize, MPI_DOUBLE, GlobalCoords.data(), LocalCoordsSizes, disps, MPI_DOUBLE, SU2_MPI::GetComm()); //TODO local coords can be deleted after this operation
0 commit comments