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

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

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

revision 2118 by jfenwick, Mon Dec 1 01:16:18 2008 UTC revision 2119 by jfenwick, Tue Dec 2 06:06:04 2008 UTC
# Line 61  DataConstant::DataConstant(const boost:: Line 61  DataConstant::DataConstant(const boost::
61  //   setPointDataView(tempView);  //   setPointDataView(tempView);
62  }  }
63    
64    DataConstant::DataConstant(const WrappedArray& value,
65                               const FunctionSpace& what)
66      : parent(what,value.getShape())
67    {
68    //   // extract the shape of the numarray
69    //   DataTypes::ShapeType tempShape;
70    //   for (int i=0; i < value.getrank(); i++) {
71    //     tempShape.push_back(extract<int>(value.getshape()[i]));
72    //   }
73    
74      // get the space for the data vector
75    //   int len = getNoValues();
76    //   DataVector temp_data(len, 0.0, len);
77    //   DataArrayView temp_dataView(temp_data, tempShape);
78    //   temp_dataView.copy(value);
79    
80      m_data.copyFromArray(value);
81      //
82    
83      // copy the data in the correct format
84    //   m_data=temp_data;
85      //
86      // create the view of the data
87    //   DataArrayView tempView(m_data,temp_dataView.getShape());
88    //   setPointDataView(tempView);
89    }
90    
91    
92  // DataConstant::DataConstant(const DataArrayView& value,  // DataConstant::DataConstant(const DataArrayView& value,
93  //                            const FunctionSpace& what)  //                            const FunctionSpace& what)
94  //   : DataAbstract(what)  //   : DataAbstract(what)

Legend:
Removed from v.2118  
changed lines
  Added in v.2119

  ViewVC Help
Powered by ViewVC 1.1.26