ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new-templateless/OOPSE/libmdtools/DumpReader.cpp
(Generate patch)

Comparing branches/new-templateless/OOPSE/libmdtools/DumpReader.cpp (file contents):
Revision 849, Fri Oct 31 18:28:53 2003 UTC vs.
Revision 850 by mmeineke, Mon Nov 3 22:07:17 2003 UTC

# Line 790 | Line 790 | char* DumpReader::parseCommentLine(char* readLine, dou
790    return NULL;
791  
792    //get chi and integralOfChidt, they should appear by pair
793 +  GenericData* myProps = entry_plug->getProperties();
794    foo = strtok(NULL, " ,;\t\n");
795    if(foo != NULL){
796      chi = atof(foo);
# Line 804 | Line 805 | char* DumpReader::parseCommentLine(char* readLine, dou
805      
806      //push chi and integralOfChidt into SimInfo::properties which can be
807      //retrieved by integrator later
808 <    DoubleData* chiValue = new DoubleData();
809 <    chiValue->setID(CHIVALUE_ID);
810 <    chiValue->setData(chi);
810 <    simnfo->addProperty(chiValue);
811 <    
812 <    DoubleData* integralOfChidtValue = new DoubleData();
813 <    integralOfChidtValue->setID(INTEGRALOFCHIDT_ID);
814 <    integralOfChidtValue->setData(integralOfChidt);
815 <    simnfo->addProperty(integralOfChidtValue);
816 <    
808 >
809 >    myProps->add( CHIVALUE_ID, chi );
810 >    myProps->add( INTEGRALOFCHIDT_ID, integralOfChidt );
811    }
812    else
813      return NULL;
# Line 832 | Line 826 | char* DumpReader::parseCommentLine(char* readLine, dou
826    //push eta into SimInfo::properties which can be
827    //retrieved by integrator later
828    //simnfo->setBoxM( theBoxMat3 );
835  DoubleArrayData* etaValue = new DoubleArrayData();
836  etaValue->setID(ETAVALUE_ID);
837  etaValue->setData(eta, 9);
838  simnfo->addProperty(etaValue);
829    
830 +  myProps->add( ETAVALUE_ID, eta, 9);  
831    
832    return NULL;
833    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines