ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/interface_implementation/SimSetup.cpp
(Generate patch)

Comparing trunk/mdtools/interface_implementation/SimSetup.cpp (file contents):
Revision 113 by mmeineke, Mon Sep 23 15:12:56 2002 UTC vs.
Revision 117 by mmeineke, Tue Sep 24 22:10:55 2002 UTC

# Line 343 | Line 343 | void SimSetup::makeAtoms( void ){
343    double ux, uy, uz, uSqr, u;
344    AtomStamp* current_atom;
345    DirectionalAtom* dAtom;
346 +  int molIndex, molStart, molEnd, nMemb;
347 +  
348  
349 +  molIndex = 0;
350    index = 0;
351    for( i=0; i<n_components; i++ ){
352      
353      for( j=0; j<components_nmol[i]; j++ ){
354        
355 +      molStart = index;
356 +      nMemb = comp_stamps[i]->getNAtoms();
357        for( k=0; k<comp_stamps[i]->getNAtoms(); k++ ){
358          
359          current_atom = comp_stamps[i]->getAtom( k );
# Line 382 | Line 387 | void SimSetup::makeAtoms( void ){
387          // increment the index and repeat;
388          index++;
389        }
390 +      
391 +      molEnd = index -1;
392 +      the_molecules[molIndex].setNMembers( nMemb );
393 +      the_molecules[molIndex].setStartAtom( molStart );
394 +      the_molecules[molIndex].setEndAtom( molEnd );
395 +      molIndex++;
396 +
397      }
398    }
399    
# Line 487 | Line 499 | void SimSetup::makeMolecules( void ){
499    the_ff->initializeTorsions( the_torsions );
500   }
501  
490 void SimSetup::makeMolecules( void ){
491
492  int i,j,k;
493  
494  for( i=0; i<n_components; i++ ){
495    
496    for( j=0; j<components_nmol[i]; j++ ){
497      
498      
499
500 }
501
502   void SimSetup::initFromBass( void ){
503  
504    int i, j, k;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines