ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/DirectionalAtom.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/DirectionalAtom.cpp (file contents):
Revision 1451 by gezelter, Mon Jun 7 14:26:33 2004 UTC vs.
Revision 1452 by tim, Mon Aug 23 15:11:36 2004 UTC

# Line 35 | Line 35 | void DirectionalAtom::setCoords(void){
35                       &trq,
36                       &Amat,
37                       &mu,  
38 <                     &ul);
38 >                     &ul,
39 >                     &quat);
40    }
41    else{
42      sprintf( painCave.errMsg,
# Line 431 | Line 432 | void DirectionalAtom::getTrq( double theT[3] ){
432      
433      sprintf( painCave.errMsg,
434               "Attempt to get Trq for atom %d before coords set.\n",
435 +             index );
436 +    painCave.isFatal = 1;
437 +    simError();
438 +  }
439 + }
440 +
441 + void DirectionalAtom::setTrq( double theT[3] ){
442 +  
443 +  if( hasCoords ){
444 +    trq[offsetX] = theT[0];
445 +    trq[offsetY] = theT[1];
446 +    trq[offsetZ] = theT[2];
447 +  }
448 +  else{
449 +    
450 +    sprintf( painCave.errMsg,
451 +             "Attempt to add Trq for atom %d before coords set.\n",
452               index );
453      painCave.isFatal = 1;
454      simError();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines