ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/brains/ForceManager.cpp
(Generate patch)

Comparing branches/development/src/brains/ForceManager.cpp (file contents):
Revision 1592 by gezelter, Tue Jul 12 20:33:14 2011 UTC vs.
Revision 1593 by gezelter, Fri Jul 15 21:35:14 2011 UTC

# Line 526 | Line 526 | namespace OpenMD {
526             mol = info_->nextMolecule(mi)) {
527          for(cg = mol->beginCutoffGroup(ci); cg != NULL;
528              cg = mol->nextCutoffGroup(ci)) {
529 +          cerr << "branch1\n";
530 +          cerr << "globind = " << cg->getGlobalIndex() << "\n";
531            cg->updateCOM();
532          }
533        }      
534      } else {
535        // center of mass of the group is the same as position of the atom  
536        // if cutoff group does not exist
537 +      cerr << "branch2\n";
538        cgConfig->position = config->position;
539      }
540  
# Line 618 | Line 621 | namespace OpenMD {
621              for (vector<int>::iterator jb = atomListColumn.begin();
622                   jb != atomListColumn.end(); ++jb) {              
623                atom2 = (*jb);
624 <            
624 >
625                if (!fDecomp_->skipAtomPair(atom1, atom2)) {
626                  vpair = 0.0;
627                  workPot = 0.0;
# Line 633 | Line 636 | namespace OpenMD {
636                  if (atomListRow.size() == 1 && atomListColumn.size() == 1) {
637                    idat.d = &d_grp;
638                    idat.r2 = &rgrpsq;
639 +                  cerr << "dgrp = " << d_grp << "\n";
640                  } else {
641                    d = fDecomp_->getInteratomicVector(atom1, atom2);
642                    curSnapshot->wrapVector( d );
643                    r2 = d.lengthSquare();
644 +                  cerr << "datm = " << d<< "\n";
645                    idat.d = &d;
646                    idat.r2 = &r2;
647                  }
648                  
649 +                cerr << "idat.d = " << *(idat.d) << "\n";
650                  r = sqrt( *(idat.r2) );
651                  idat.rij = &r;
652                
# Line 649 | Line 655 | namespace OpenMD {
655                  } else {
656                    interactionMan_->doPair(idat);
657                    fDecomp_->unpackInteractionData(idat, atom1, atom2);
658 +
659 +                  cerr << "d = " << *(idat.d) << "\tv=" << vpair << "\tf=" << f1 << "\n";
660                    vij += vpair;
661                    fij += f1;
654                  cerr << "ats = " << atom1 << " " << atom2 << "d = " << *(idat.d) << " f1 = " << f1 << "\n";
662                    tau -= outProduct( *(idat.d), f1);
663                  }
664                }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines