/[escript]/trunk/escript/src/Data/DataExpanded.cpp
ViewVC logotype

Diff of /trunk/escript/src/Data/DataExpanded.cpp

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

revision 117 by jgs, Fri Apr 1 05:48:57 2005 UTC revision 119 by jgs, Tue Apr 12 04:45:05 2005 UTC
# Line 72  DataExpanded::DataExpanded(const DataTag Line 72  DataExpanded::DataExpanded(const DataTag
72    : DataAbstract(other.getFunctionSpace())    : DataAbstract(other.getFunctionSpace())
73  {  {
74    //    //
75    // initialise the data for this object    // initialise the data array for this object
76    initialise(other.getPointDataView().getShape(),other.getNumSamples(),other.getNumDPPSample());    initialise(other.getPointDataView().getShape(),other.getNumSamples(),other.getNumDPPSample());
77    //    //
78    // for each data point in this object, extract and copy the corresponding data    // for each data point in this object, extract and copy the corresponding data
# Line 137  DataExpanded::DataExpanded(const DataArr Line 137  DataExpanded::DataExpanded(const DataArr
137    copy(value);    copy(value);
138  }  }
139    
140    DataExpanded::DataExpanded(const FunctionSpace& what,
141                               const DataArrayView::ShapeType &shape,
142                               const DataArrayView::ValueType &data)
143      : DataAbstract(what)
144    {
145      //
146      // copy the data in the correct format
147      m_data.getData()=data;
148      //
149      // create the view of the data
150      DataArrayView tempView(m_data.getData(),shape);
151      setPointDataView(tempView);
152    }
153    
154  DataExpanded::~DataExpanded()  DataExpanded::~DataExpanded()
155  {  {
156  }  }

Legend:
Removed from v.117  
changed lines
  Added in v.119

  ViewVC Help
Powered by ViewVC 1.1.26