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 689 by tim, Tue Aug 12 19:56:49 2003 UTC vs.
Revision 788 by mmeineke, Thu Sep 25 21:17:16 2003 UTC

# Line 39 | Line 39 | void DirectionalAtom::setCoords(void){
39    else{
40      sprintf( painCave.errMsg,
41               "Attempted to set Atom %d  coordinates with an unallocated "
42 <             "SimState object.\n" );
42 >             "SimState object.\n", index );
43      painCave.isFatal = 1;
44      simError();
45    }
46  
47    hasCoords = true;
48  
49 <  mu[index] = myMu;
49 >  *mu = myMu;
50  
51   }
52  
53   double DirectionalAtom::getMu( void ) {
54  
55    if( hasCoords ){
56 <    return mu[index];
56 >    return *mu;
57    }
58    else{
59      return myMu;
60    }
61  return 0;
61   }
62  
63   void DirectionalAtom::setMu( double the_mu ) {
64  
65    if( hasCoords ){
66 <    mu[index] = the_mu;
66 >    *mu = the_mu;
67      myMu = the_mu;
68    }
69    else{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines