--- trunk/OOPSE/libmdtools/SimState.cpp 2004/04/27 16:26:44 1136 +++ trunk/OOPSE/libmdtools/SimState.cpp 2004/05/07 21:35:05 1150 @@ -19,6 +19,8 @@ SimState::SimState(){ Amat = NULL; mu = NULL; ul = NULL; + rc = NULL; + massRatio = NULL; } @@ -31,6 +33,8 @@ SimState::~SimState(){ if(Amat != NULL) delete[] Amat; if(mu != NULL) delete[] mu; if(ul != NULL) delete[] ul; + if(rc != NULL) delete[] rc; + if(massRatio != NULL) delete[] massRatio; } @@ -56,7 +60,7 @@ void SimState::createArrays (int the_nElements) { Amat = new double[nElements*9]; mu = new double[nElements]; ul = new double[nElements*3]; - rc = new double[nElements*3]; + rc = new double[nElements*3]; massRatio = new double[nElements]; // init directional values to zero @@ -100,7 +104,7 @@ void SimState::destroyArrays( void ){ if(Amat != NULL) delete[] Amat; if(mu != NULL) delete[] mu; if(ul != NULL) delete[] ul; - if(rc != NULL) delete[] rc; + if(rc != NULL) delete[] rc; if(massRatio != NULL) delete[] massRatio; pos = NULL; @@ -110,7 +114,7 @@ void SimState::destroyArrays( void ){ Amat = NULL; mu = NULL; ul = NULL; - rc = NULL; + rc = NULL; massRatio = NULL; arraysAllocated = false; @@ -141,7 +145,7 @@ void SimState::getAtomPointers( int index, *the_Amat = &(Amat[index9]); *the_mu = &(mu[index]); *the_ul = &(ul[index3]); - *the_rc = &(rc[index3]); + *the_rc = &(rc[index3]); *the_massRatio = &(massRatio[index]); } else{