| # | Line 382 | Line 382 | int SimInfo::getNDFtranslational() { | |
|---|---|---|
| 382 | ||
| 383 | return ndfTrans; | |
| 384 | } | |
| 385 | + | |
| 386 | + | int SimInfo::getTotIntegrableObjects() { |
| 387 | + | int nObjs_local; |
| 388 | + | int nObjs; |
| 389 | + | |
| 390 | + | nObjs_local = integrableObjects.size(); |
| 391 | ||
| 392 | + | |
| 393 | + | #ifdef IS_MPI |
| 394 | + | MPI_Allreduce(&nObjs_local,&nObjs,1,MPI_INT,MPI_SUM, MPI_COMM_WORLD); |
| 395 | + | #else |
| 396 | + | nObjs = nObjs_local; |
| 397 | + | #endif |
| 398 | + | |
| 399 | + | |
| 400 | + | return nObjs; |
| 401 | + | } |
| 402 | + | |
| 403 | void SimInfo::refreshSim(){ | |
| 404 | ||
| 405 | simtype fInfo; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |