/[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 474 by jgs, Mon Jan 30 04:23:44 2006 UTC revision 580 by gross, Wed Mar 8 05:45:51 2006 UTC
# Line 191  DataConstant::extractData(ifstream& arch Line 191  DataConstant::extractData(ifstream& arch
191    return(m_data.extractData(archiveFile, noValues));    return(m_data.extractData(archiveFile, noValues));
192  }  }
193    
194    void
195    DataConstant::eigenvalues(DataAbstract* ev)
196    {
197      DataConstant* temp_ev=dynamic_cast<DataConstant*>(ev);
198      if (temp_ev==0) {
199        throw DataException("Error - DataConstant::eigenvalues: casting to DataConstant failed (propably a programming error).");
200      }
201      DataArrayView& thisView=getPointDataView();
202      DataArrayView& evView=ev->getPointDataView();
203      DataArrayView::eigenvalues(thisView,0,evView,0);
204    }
205    void
206    DataConstant::eigenvalues_and_eigenvectors(DataAbstract* ev,DataAbstract* V,const double tol)
207    {
208      DataConstant* temp_ev=dynamic_cast<DataConstant*>(ev);
209      if (temp_ev==0) {
210        throw DataException("Error - DataConstant::eigenvalues_and_eigenvectors: casting to DataConstant failed (propably a programming error).");
211      }
212      DataConstant* temp_V=dynamic_cast<DataConstant*>(V);
213      if (temp_V==0) {
214        throw DataException("Error - DataConstant::eigenvalues_and_eigenvectors: casting to DataConstant failed (propably a programming error).");
215      }
216      DataArrayView thisView=getPointDataView();
217      DataArrayView evView=ev->getPointDataView();
218      DataArrayView VView=V->getPointDataView();
219    
220      DataArrayView::eigenvalues_and_eigenvectors(thisView,0,evView,0,VView,tol);
221    }
222    
223    
224  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.474  
changed lines
  Added in v.580

  ViewVC Help
Powered by ViewVC 1.1.26