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

Comparing trunk/OOPSE/libmdtools/NPTi.cpp (file contents):
Revision 853 by mmeineke, Thu Nov 6 19:11:38 2003 UTC vs.
Revision 855 by mmeineke, Thu Nov 6 22:01:37 2003 UTC

# Line 33 | Line 33 | template<typename T> NPTi<T>::NPTi ( SimInfo *theInfo,
33    eta = 0.0;
34    oldEta = 0.0;
35  
36 <  // retrieve eta from simInfo if
37 <  data = info->getProperty(ETAVALUE_ID);
38 <  if(data){
39 <    etaValue = dynamic_cast<DoubleArrayData*>(data);
40 <
41 <    if(etaValue){
42 <      etaArray = etaValue->getData();
43 <      eta = etaArray[0];
44 <      oldEta = eta;
36 >  if( theInfo->useInitXSstate ){
37 >    // retrieve eta from simInfo if
38 >    data = info->getProperty(ETAVALUE_ID);
39 >    if(data){
40 >      etaValue = dynamic_cast<DoubleArrayData*>(data);
41 >      
42 >      if(etaValue){
43 >        etaArray = etaValue->getData();
44 >        eta = etaArray[0];
45 >        oldEta = eta;
46 >      }
47      }
48    }
47
49   }
50  
51   template<typename T> NPTi<T>::~NPTi() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines