| 64 |
|
#include "utils/LocalIndexManager.hpp" |
| 65 |
|
#include "nonbonded/SwitchingFunction.hpp" |
| 66 |
|
|
| 67 |
– |
//another nonsense macro declaration |
| 68 |
– |
#define __OPENMD_C |
| 69 |
– |
#include "brains/fSimulation.h" |
| 70 |
– |
|
| 67 |
|
using namespace std; |
| 68 |
|
namespace OpenMD{ |
| 69 |
< |
//forward decalration |
| 69 |
> |
//forward declaration |
| 70 |
|
class SnapshotManager; |
| 71 |
|
class Molecule; |
| 72 |
|
class SelectionManager; |
| 337 |
|
int getGlobalMolMembership(int id){ |
| 338 |
|
return globalMolMembership_[id]; |
| 339 |
|
} |
| 340 |
+ |
|
| 341 |
+ |
/** |
| 342 |
+ |
* returns a vector which maps the local atom index on this |
| 343 |
+ |
* processor to the global atom index. With only one processor, |
| 344 |
+ |
* these should be identical. |
| 345 |
+ |
*/ |
| 346 |
+ |
vector<int> getGlobalAtomIndices(); |
| 347 |
+ |
|
| 348 |
+ |
/** |
| 349 |
+ |
* returns a vector which maps the local cutoff group index on |
| 350 |
+ |
* this processor to the global cutoff group index. With only one |
| 351 |
+ |
* processor, these should be identical. |
| 352 |
+ |
*/ |
| 353 |
+ |
vector<int> getGlobalGroupIndices(); |
| 354 |
|
|
| 355 |
|
string getFinalConfigFileName() { |
| 356 |
|
return finalConfigFileName_; |
| 550 |
|
private: |
| 551 |
|
/// Data structures holding primary simulation objects |
| 552 |
|
map<int, Molecule*> molecules_; /**< map holding pointers to LOCAL molecules */ |
| 543 |
– |
simtype fInfo_; /**< A dual struct shared by C++ |
| 544 |
– |
and Fortran to pass |
| 545 |
– |
information about what types |
| 546 |
– |
of calculation are |
| 547 |
– |
required */ |
| 553 |
|
|
| 554 |
|
/// Stamps are templates for objects that are then used to create |
| 555 |
|
/// groups of objects. For example, a molecule stamp contains |