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

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

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

revision 2271 by jfenwick, Mon Feb 16 05:08:29 2009 UTC revision 2384 by jfenwick, Wed Apr 15 00:17:20 2009 UTC
# Line 178  double* getSampleDataRWFast(struct escri Line 178  double* getSampleDataRWFast(struct escri
178    return temp->getSampleDataRW(sampleNo);    return temp->getSampleDataRW(sampleNo);
179  }  }
180    
181    double* getDataRW(escriptDataC* data)
182    {
183      escript::Data* temp=(escript::Data*)(data->m_dataPtr);
184      if (temp->getNumSamples()>0)
185      {
186         requireWrite(data);
187         return getSampleDataRWFast(data,0);
188      }
189      return 0;
190    }
191    
192    
193  void* allocSampleBuffer(escriptDataC* data)  void* allocSampleBuffer(escriptDataC* data)
194  {  {
195    if (data == (struct escriptDataC*)0) {    if (data == (struct escriptDataC*)0) {

Legend:
Removed from v.2271  
changed lines
  Added in v.2384

  ViewVC Help
Powered by ViewVC 1.1.26