/[escript]/branches/arrayview_from_1695_trunk/escript/src/DataConstant.cpp
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/escript/src/DataConstant.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1772 by jfenwick, Fri Sep 5 06:26:29 2008 UTC revision 1773 by jfenwick, Tue Sep 9 02:52:26 2008 UTC
# Line 42  DataConstant::DataConstant(const boost:: Line 42  DataConstant::DataConstant(const boost::
42  //   }  //   }
43    
44    // get the space for the data vector    // get the space for the data vector
45    int len = getNoValues();  //   int len = getNoValues();
46    DataVector temp_data(len, 0.0, len);  //   DataVector temp_data(len, 0.0, len);
47  //   DataArrayView temp_dataView(temp_data, tempShape);  //   DataArrayView temp_dataView(temp_data, tempShape);
48  //   temp_dataView.copy(value);  //   temp_dataView.copy(value);
49    
50      m_data.copyFromNumArray(value);
51    //    //
52    
53    // copy the data in the correct format    // copy the data in the correct format
54    m_data=temp_data;  //   m_data=temp_data;
55    //    //
56    // create the view of the data    // create the view of the data
57  //   DataArrayView tempView(m_data,temp_dataView.getShape());  //   DataArrayView tempView(m_data,temp_dataView.getShape());

Legend:
Removed from v.1772  
changed lines
  Added in v.1773

  ViewVC Help
Powered by ViewVC 1.1.26