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

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

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

trunk/esys2/escript/src/Data/DataAbstract.cpp revision 117 by jgs, Fri Apr 1 05:48:57 2005 UTC trunk/escript/src/DataAbstract.cpp revision 921 by gross, Fri Jan 5 00:54:37 2007 UTC
# Line 1  Line 1 
1  // $Id$  // $Id$
2  /*  /*
3   ******************************************************************************   ************************************************************
4   *                                                                            *   *          Copyright 2006 by ACcESS MNRF                   *
5   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *                                                          *
6   *                                                                            *   *              http://www.access.edu.au                    *
7   * This software is the property of ACcESS. No part of this code              *   *       Primary Business: Queensland, Australia            *
8   * may be copied in any form or by any means without the expressed written    *   *  Licensed under the Open Software License version 3.0    *
9   * consent of ACcESS.  Copying, use or modification of this software          *   *     http://www.opensource.org/licenses/osl-3.0.php       *
10   * by any unauthorised person is illegal unless that person has a software    *   *                                                          *
11   * license agreement with ACcESS.                                             *   ************************************************************
  *                                                                            *  
  ******************************************************************************  
12  */  */
13    
14  #include "escript/Data/DataAbstract.h"  #include "DataAbstract.h"
15  #include "escript/Data/DataException.h"  #include "DataException.h"
   
 #include <iostream>  
16    
17  using namespace std;  using namespace std;
18    
# Line 40  DataAbstract::setPointDataView(const Dat Line 36  DataAbstract::setPointDataView(const Dat
36  }  }
37    
38  void  void
39    DataAbstract::resetPointDataView()
40    {
41        m_pointDataView.reset(new DataArrayView());
42    }
43    
44    void
45  DataAbstract::operandCheck(const DataAbstract& right) const  DataAbstract::operandCheck(const DataAbstract& right) const
46  {  {
47      if ((right.getNumDPPSample()!=getNumDPPSample()) ||      if ((right.getNumDPPSample()!=getNumDPPSample()) ||
# Line 84  DataAbstract::setTaggedValue(int tagKey, Line 86  DataAbstract::setTaggedValue(int tagKey,
86      throw DataException("Error - DataAbstract::setTaggedValue: Data type does not have tag values.");      throw DataException("Error - DataAbstract::setTaggedValue: Data type does not have tag values.");
87  }  }
88    
89    int
90    DataAbstract::getTagNumber(int dpno)
91    {
92        throw DataException("Error - DataAbstract::getTagNumber: Data type cannot be accessed by tag values.");
93        return (0);
94    }
95    
96  void  void
97  DataAbstract::setRefValue(int ref,  DataAbstract::setRefValue(int ref,
98                            const DataArray& value)                            const DataArray& value)
# Line 98  DataAbstract::getRefValue(int ref, Line 107  DataAbstract::getRefValue(int ref,
107      throw DataException("Error - DataAbstract::getRefValue: Data type cannot be accessed by reference values.");      throw DataException("Error - DataAbstract::getRefValue: Data type cannot be accessed by reference values.");
108  }  }
109    
110    int
111    DataAbstract::archiveData(ofstream& archiveFile,
112                              const ValueType::size_type noValues) const
113    {
114      return 0;
115    }
116    
117    int
118    DataAbstract::extractData(ifstream& archiveFile,
119                              const ValueType::size_type noValues)
120    {
121      return 0;
122    }
123    
124    void
125    DataAbstract::copyAll(const boost::python::numeric::array& value)
126    {
127        throw DataException("Error - DataAbstract::copying data from numarray objects is not supported.");
128    }
129    void
130    DataAbstract::copyToDataPoint(const int sampleNo, const int dataPointNo, const boost::python::numeric::array& value)
131    {
132        throw DataException("Error - DataAbstract::copying data from numarray objects to a single data point is not supported.");
133    }
134    
135    void
136    DataAbstract::symmetric(DataAbstract* ev)
137    {
138        throw DataException("Error - DataAbstract::symmetric is not supported.");
139    }
140    
141    void
142    DataAbstract::nonsymmetric(DataAbstract* ev)
143    {
144        throw DataException("Error - DataAbstract::nonsymmetric is not supported.");
145    }
146    
147    void
148    DataAbstract::trace(DataAbstract* ev, int axis_offset)
149    {
150        throw DataException("Error - DataAbstract::trace is not supported.");
151    }
152    
153    void
154    DataAbstract::swapaxes(DataAbstract* ev, int axis0, int axis1)
155    {
156        throw DataException("Error - DataAbstract::component swapaxes is not supported.");
157    }
158    void
159    DataAbstract::transpose(DataAbstract* ev, int axis_offset)
160    {
161        throw DataException("Error - DataAbstract::transpose is not supported.");
162    }
163    
164    void
165    DataAbstract::eigenvalues(DataAbstract* ev)
166    {
167        throw DataException("Error - DataAbstract::eigenvalues is not supported.");
168    
169    }
170    void
171    DataAbstract::eigenvalues_and_eigenvectors(DataAbstract* ev,DataAbstract* V,const double tol)
172    {
173        throw DataException("Error - DataAbstract::eigenvalues_and_eigenvectors is not supported.");
174    
175    }
176    
177    
178    
179  }  // end of namespace  }  // end of namespace

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

  ViewVC Help
Powered by ViewVC 1.1.26