| 174 |
|
|
| 175 |
|
// Compute surface Mesh |
| 176 |
|
surfaceMesh_->computeHull(localSites_); |
| 177 |
– |
Snapshot* currSnapshot = info_->getSnapshotManager()->getCurrentSnapshot(); |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
LangevinHullForceManager::~LangevinHullForceManager() { |
| 278 |
|
// push these out to the other processors |
| 279 |
|
|
| 280 |
|
#ifdef IS_MPI |
| 281 |
< |
if (worldRank == 0) { |
| 282 |
< |
MPI::COMM_WORLD.Bcast(&gaussRand[0], nTriangles*3, MPI::REALTYPE, 0); |
| 284 |
< |
} else { |
| 285 |
< |
MPI::COMM_WORLD.Bcast(&gaussRand[0], nTriangles*3, MPI::REALTYPE, 0); |
| 286 |
< |
} |
| 281 |
> |
// Same command on all nodes: |
| 282 |
> |
MPI::COMM_WORLD.Bcast(&gaussRand[0], nTriangles*3, MPI::REALTYPE, 0); |
| 283 |
|
#endif |
| 284 |
|
|
| 285 |
|
return gaussRand; |