/[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 123 by jgs, Fri Jul 8 04:08:13 2005 UTC trunk/escript/src/DataAbstract.cpp revision 1487 by gross, Thu Apr 10 05:28:01 2008 UTC
# Line 1  Line 1 
 // $Id$  
 /*  
  ******************************************************************************  
  *                                                                            *  
  *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *  
  *                                                                            *  
  * This software is the property of ACcESS. No part of this code              *  
  * may be copied in any form or by any means without the expressed written    *  
  * consent of ACcESS.  Copying, use or modification of this software          *  
  * by any unauthorised person is illegal unless that person has a software    *  
  * license agreement with ACcESS.                                             *  
  *                                                                            *  
  ******************************************************************************  
 */  
1    
2  #include "escript/Data/DataAbstract.h"  /* $Id$ */
 #include "escript/Data/DataException.h"  
3    
4  #include <iostream>  /*******************************************************
5  #include <fstream>   *
6     *           Copyright 2003-2007 by ACceSS MNRF
7     *       Copyright 2007 by University of Queensland
8     *
9     *                http://esscc.uq.edu.au
10     *        Primary Business: Queensland, Australia
11     *  Licensed under the Open Software License version 3.0
12     *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16    #include "DataAbstract.h"
17    #include "DataException.h"
18    
19  using namespace std;  using namespace std;
20    
# Line 78  DataAbstract::operandCheck(const DataAbs Line 75  DataAbstract::operandCheck(const DataAbs
75        }        }
76  }  }
77    
78    void
79    DataAbstract::dump(const std::string fileName) const
80    {
81        throw DataException("Error - DataAbstract:: dump: not implemented.");
82    }
83    
84    
85    
86  DataAbstract::ValueType::value_type*  DataAbstract::ValueType::value_type*
87  DataAbstract::getSampleDataByTag(int tag)  DataAbstract::getSampleDataByTag(int tag)
88  {  {
# Line 91  DataAbstract::setTaggedValue(int tagKey, Line 96  DataAbstract::setTaggedValue(int tagKey,
96      throw DataException("Error - DataAbstract::setTaggedValue: Data type does not have tag values.");      throw DataException("Error - DataAbstract::setTaggedValue: Data type does not have tag values.");
97  }  }
98    
99  void  int
100  DataAbstract::setRefValue(int ref,  DataAbstract::getTagNumber(int dpno)
                           const DataArray& value)  
 {  
     throw DataException("Error - DataAbstract::setRefValue: Data type cannot be accessed by reference values.");  
 }  
   
 void  
 DataAbstract::getRefValue(int ref,  
                           DataArray& value)  
101  {  {
102      throw DataException("Error - DataAbstract::getRefValue: Data type cannot be accessed by reference values.");      throw DataException("Error - DataAbstract::getTagNumber: Data type cannot be accessed by tag values.");
103        return (0);
104  }  }
105    
106  int  int
# Line 119  DataAbstract::extractData(ifstream& arch Line 117  DataAbstract::extractData(ifstream& arch
117    return 0;    return 0;
118  }  }
119    
120    void
121    DataAbstract::copyAll(const boost::python::numeric::array& value)
122    {
123        throw DataException("Error - DataAbstract::copying data from numarray objects is not supported.");
124    }
125    void
126    DataAbstract::copyToDataPoint(const int sampleNo, const int dataPointNo, const double value)
127    {
128        throw DataException("Error - DataAbstract::copying data from double value to a single data point is not supported.");
129    }
130    void
131    DataAbstract::copyToDataPoint(const int sampleNo, const int dataPointNo, const boost::python::numeric::array& value)
132    {
133        throw DataException("Error - DataAbstract::copying data from numarray objects to a single data point is not supported.");
134    }
135    
136    void
137    DataAbstract::symmetric(DataAbstract* ev)
138    {
139        throw DataException("Error - DataAbstract::symmetric is not supported.");
140    }
141    
142    void
143    DataAbstract::nonsymmetric(DataAbstract* ev)
144    {
145        throw DataException("Error - DataAbstract::nonsymmetric is not supported.");
146    }
147    
148    void
149    DataAbstract::trace(DataAbstract* ev, int axis_offset)
150    {
151        throw DataException("Error - DataAbstract::trace is not supported.");
152    }
153    
154    void
155    DataAbstract::swapaxes(DataAbstract* ev, int axis0, int axis1)
156    {
157        throw DataException("Error - DataAbstract::component swapaxes is not supported.");
158    }
159    void
160    DataAbstract::transpose(DataAbstract* ev, int axis_offset)
161    {
162        throw DataException("Error - DataAbstract::transpose is not supported.");
163    }
164    
165    void
166    DataAbstract::eigenvalues(DataAbstract* ev)
167    {
168        throw DataException("Error - DataAbstract::eigenvalues is not supported.");
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    void
177    DataAbstract::setToZero()
178    {
179        throw DataException("Error - DataAbstract:: cannot set values to zero.");
180    }
181    
182    void
183    DataAbstract::reorderByReferenceIDs(int *reference_ids)
184    {
185    }
186    
187    
188    
189    
190  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.123  
changed lines
  Added in v.1487

  ViewVC Help
Powered by ViewVC 1.1.26