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

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

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

revision 803 by gross, Tue Aug 8 11:23:18 2006 UTC revision 804 by gross, Thu Aug 10 01:12:16 2006 UTC
# Line 226  DataConstant::trace(DataAbstract* ev, in Line 226  DataConstant::trace(DataAbstract* ev, in
226  }  }
227    
228  void  void
229  DataConstant::swap(DataAbstract* ev, int axis_offset)  DataConstant::swapaxes(DataAbstract* ev, int axis0, int axis1)
230  {  {
231    DataConstant* temp_ev=dynamic_cast<DataConstant*>(ev);    DataConstant* temp_ev=dynamic_cast<DataConstant*>(ev);
232    if (temp_ev==0) {    if (temp_ev==0) {
233      throw DataException("Error - DataConstant::swap: casting to DataConstant failed (propably a programming error).");      throw DataException("Error - DataConstant::swapaxes: casting to DataConstant failed (propably a programming error).");
234    }    }
235    DataArrayView& thisView=getPointDataView();    DataArrayView& thisView=getPointDataView();
236    DataArrayView& evView=ev->getPointDataView();    DataArrayView& evView=ev->getPointDataView();
237    DataArrayView::swap(thisView,0,evView,0,axis_offset);    DataArrayView::swapaxes(thisView,0,evView,0,axis0,axis1);
238  }  }
239    
240  void  void

Legend:
Removed from v.803  
changed lines
  Added in v.804

  ViewVC Help
Powered by ViewVC 1.1.26