--- trunk/OOPSE-4/src/integrators/NPTxyz.cpp 2004/09/24 16:27:58 1492 +++ trunk/OOPSE-4/src/integrators/NPTxyz.cpp 2004/10/21 16:22:01 1625 @@ -28,8 +28,7 @@ template NPTxyz::NPTxyz ( SimInfo *theI T( theInfo, the_ff ) { GenericData* data; - DoubleArrayData * etaValue; - vector etaArray; + DoubleVectorGenericData * etaValue; int i,j; for(i = 0; i < 3; i++){ @@ -46,14 +45,13 @@ template NPTxyz::NPTxyz ( SimInfo *theI // retrieve eta array from simInfo if it exists data = info->getProperty(ETAVALUE_ID); if(data){ - etaValue = dynamic_cast(data); + etaValue = dynamic_cast(data); if(etaValue){ - etaArray = etaValue->getData(); for(i = 0; i < 3; i++){ for (j = 0; j < 3; j++){ - eta[i][j] = etaArray[3*i+j]; + eta[i][j] = (*etaValue)[3*i+j]; oldEta[i][j] = eta[i][j]; } }