--- trunk/OOPSE/libmdtools/DirectionalAtom.cpp 2003/08/12 19:56:49 689 +++ trunk/OOPSE/libmdtools/DirectionalAtom.cpp 2003/09/25 19:27:15 787 @@ -39,21 +39,21 @@ 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; @@ -64,7 +64,7 @@ void DirectionalAtom::setMu( double the_mu ) { void DirectionalAtom::setMu( double the_mu ) { if( hasCoords ){ - mu[index] = the_mu; + *mu = the_mu; myMu = the_mu; } else{