1 |
+ |
#define _LARGEFILE_SOURCE64 |
2 |
|
#define _FILE_OFFSET_BITS 64 |
3 |
|
|
4 |
|
#include <string.h> |
96 |
|
indexArray.push_back(make_pair(i, atoms[i]->getGlobalIndex())); |
97 |
|
|
98 |
|
sort(indexArray.begin(), indexArray.end(), indexSortingCriterion); |
98 |
– |
|
99 |
– |
//for (int i = 0; i < mpiSim->getMyNlocal(); i++) { |
100 |
– |
// printf("node %d has global %d at local %d\n", worldRank, indexArray[i].second, indexArray[i].first); |
101 |
– |
//} |
102 |
– |
|
99 |
|
} |
100 |
|
|
101 |
|
#endif |
390 |
|
|
391 |
|
haveError = 0; |
392 |
|
which_atom = i; |
397 |
– |
|
398 |
– |
//local_index = -1; |
399 |
– |
|
400 |
– |
//for (j=0; (j<mpiSim->getMyNlocal()) && (local_index < 0); j++) { |
401 |
– |
// if (atoms[j]->getGlobalIndex() == which_atom) local_index = j; |
402 |
– |
//} |
393 |
|
|
404 |
– |
//if (local_index != -1) { |
405 |
– |
|
394 |
|
local_index = indexArray[currentIndex].first; |
395 |
|
|
396 |
|
if (which_atom == indexArray[currentIndex].second) { |
519 |
|
} |
520 |
|
which_atom = i; |
521 |
|
|
534 |
– |
//local_index = -1; |
535 |
– |
|
536 |
– |
//for (j=0; (j<mpiSim->getMyNlocal()) && (local_index < 0); j++) { |
537 |
– |
// if (atoms[j]->getGlobalIndex() == which_atom) local_index = j; |
538 |
– |
//} |
539 |
– |
|
540 |
– |
//if (local_index != -1) { |
541 |
– |
|
522 |
|
local_index = indexArray[currentIndex].first; |
523 |
|
|
524 |
|
if (which_atom == indexArray[currentIndex].second) { |