ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/src/integrators/NPTi.cpp
(Generate patch)

Comparing trunk/OOPSE-3.0/src/integrators/NPTi.cpp (file contents):
Revision 1492 by tim, Fri Sep 24 16:27:58 2004 UTC vs.
Revision 1625 by tim, Thu Oct 21 16:22:01 2004 UTC

# Line 27 | Line 27 | template<typename T> NPTi<T>::NPTi ( SimInfo *theInfo,
27    T( theInfo, the_ff )
28   {
29    GenericData* data;
30 <  DoubleArrayData * etaValue;
30 >  DoubleVectorGenericData * etaValue;
31    vector<double> etaArray;
32  
33    eta = 0.0;
# Line 37 | Line 37 | template<typename T> NPTi<T>::NPTi ( SimInfo *theInfo,
37      // retrieve eta from simInfo if
38      data = info->getProperty(ETAVALUE_ID);
39      if(data){
40 <      etaValue = dynamic_cast<DoubleArrayData*>(data);
40 >      etaValue = dynamic_cast<DoubleVectorGenericData*>(data);
41        
42        if(etaValue){
43 <        etaArray = etaValue->getData();
44 <        eta = etaArray[0];
43 >        eta = (*etaValue)[0];
44          oldEta = eta;
45        }
46      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines