/[escript]/trunk/escript/src/DataArray.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataArray.cpp

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

revision 108 by jgs, Thu Jan 27 06:21:59 2005 UTC revision 121 by jgs, Fri May 6 04:26:16 2005 UTC
# Line 24  namespace escript { Line 24  namespace escript {
24    
25  DataArray::DataArray(double value)  DataArray::DataArray(double value)
26  {  {
27      m_data.push_back(value);      m_data.resize(1,value);
28      // create a view with an empty shape, a scalar.      // create a view with an empty shape, a scalar.
29      m_dataView.reset(new DataArrayView(m_data,DataArrayView::ShapeType()));      m_dataView.reset(new DataArrayView(m_data,DataArrayView::ShapeType()));
30  }  }

Legend:
Removed from v.108  
changed lines
  Added in v.121

  ViewVC Help
Powered by ViewVC 1.1.26