--- trunk/OOPSE-2.0/src/integrators/NPTxyz.cpp 2004/09/24 16:27:58 1492 +++ branches/new_design/OOPSE-2.0/src/integrators/NPTxyz.cpp 2004/11/03 16:08:43 1701 @@ -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++){ @@ -44,16 +43,15 @@ template NPTxyz::NPTxyz ( SimInfo *theI if( theInfo->useInitXSstate ){ // retrieve eta array from simInfo if it exists - data = info->getProperty(ETAVALUE_ID); + data = info->getPropertyByName(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]; } }