--- trunk/OOPSE/libmdtools/Molecule.hpp 2003/04/09 04:06:43 483 +++ trunk/OOPSE/libmdtools/Molecule.hpp 2003/04/10 20:08:56 489 @@ -35,6 +35,10 @@ class Molecule{ (public) void initialize( molInit &theInit ); void setMyIndex( int theIndex ){ myIndex = theIndex;} + void setGlobalIndex( int theIndex ) {globalIndex = theIndex; } + + int getMyIndex( void ) { return myIndex; } + int getGlobalIndex( void ) { return globalIndex; } int getNAtoms ( void ) {return nAtoms;} int getNBonds ( void ) {return nBonds;} @@ -52,7 +56,10 @@ class Molecule{ (public) Exclude** getMyExcludes( void ) {return myExcludes;} void setStampID( int info ) {stampID = info;} + + + void calcForces( void ); double getPotential( void ); @@ -76,6 +83,7 @@ class Molecule{ (public) int nExcludes; // . . . . .. .. excludes .. . . int myIndex; // mostly just for debug (and for making pressure calcs work) + int globalIndex; Atom** myAtoms; // the array of atoms Bond** myBonds; // arrays of all the short range interactions