--- trunk/OOPSE/libmdtools/Molecule.hpp 2003/03/27 20:12:15 423 +++ trunk/OOPSE/libmdtools/Molecule.hpp 2003/03/31 21:50:59 438 @@ -14,6 +14,7 @@ typedef struct{ int nBends; // . . . . .. . .bends . . . . .. . int nTorsions; // .. . . .. . . torsions . . .. . . int nOriented; // .. . . . .. . oriented atoms . . . + int nExcludes; // . . .. . . . .exclude pairs.. . . . Atom** myAtoms; // the array of atoms Exclude** myExcludes;// the array of Excluded pairs @@ -32,6 +33,8 @@ class Molecule{ (public) ~Molecule( void ); void initialize( molInit &theInit ); + + void setMyIndex( int theIndex ){ myIndex = theIndex;} int getNAtoms ( void ) {return nAtoms;} int getNBonds ( void ) {return nBonds;} @@ -45,14 +48,16 @@ class Molecule{ (public) Atom** getMyAtoms ( void ) {return myAtoms;} Bond** getMyBonds ( void ) {return myBonds;} Bend** getMyBends ( void ) {return myBends;} - Torsions** getmyTorsions( void ) {return myTorsions;} - Exclude** getmyExcludes( void ) {return myExcludes;} + Torsion** getMyTorsions( void ) {return myTorsions;} + Exclude** getMyExcludes( void ) {return myExcludes;} void setStampID( int info ) {stampID = info;} void calcForces( void ); double getPotential( void ); + void printMe( void ); + private: @@ -65,6 +70,8 @@ class Molecule{ (public) int nMembers; // .. . . . . . .atoms (legacy code) . . . int nExcludes; // . . . . .. .. excludes .. . . + int myIndex; // mostly just for debug + Atom** myAtoms; // the array of atoms Bond** myBonds; // arrays of all the short range interactions Bend** myBends;