--- trunk/OOPSE/libmdtools/DirectionalAtom.cpp 2003/08/12 19:56:49 689 +++ trunk/OOPSE/libmdtools/DirectionalAtom.cpp 2003/09/25 21:17:16 788 @@ -39,32 +39,31 @@ void DirectionalAtom::setCoords(void){ else{ sprintf( painCave.errMsg, "Attempted to set Atom %d coordinates with an unallocated " - "SimState object.\n" ); + "SimState object.\n", index ); painCave.isFatal = 1; simError(); } hasCoords = true; - mu[index] = myMu; + *mu = myMu; } double DirectionalAtom::getMu( void ) { if( hasCoords ){ - return mu[index]; + return *mu; } else{ return myMu; } - return 0; } void DirectionalAtom::setMu( double the_mu ) { if( hasCoords ){ - mu[index] = the_mu; + *mu = the_mu; myMu = the_mu; } else{