/[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

revision 474 by jgs, Mon Jan 30 04:23:44 2006 UTC revision 1118 by gross, Tue Apr 24 08:55:04 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 "DataAbstract.h"  #include "DataAbstract.h"
15  #include "DataException.h"  #include "DataException.h"
16    
 #include <iostream>  
 #include <fstream>  
   
17  using namespace std;  using namespace std;
18    
19  namespace escript {  namespace escript {
# Line 78  DataAbstract::operandCheck(const DataAbs Line 73  DataAbstract::operandCheck(const DataAbs
73        }        }
74  }  }
75    
76    void
77    DataAbstract::dump(const std::string fileName) const
78    {
79        throw DataException("Error - DataAbstract:: dump: not implemented.");
80    }
81    
82    
83    
84  DataAbstract::ValueType::value_type*  DataAbstract::ValueType::value_type*
85  DataAbstract::getSampleDataByTag(int tag)  DataAbstract::getSampleDataByTag(int tag)
86  {  {
# Line 98  DataAbstract::getTagNumber(int dpno) Line 101  DataAbstract::getTagNumber(int dpno)
101      return (0);      return (0);
102  }  }
103    
 void  
 DataAbstract::setRefValue(int ref,  
                           const DataArray& value)  
 {  
     throw DataException("Error - DataAbstract::setRefValue: Data type cannot be accessed by reference values.");  
 }  
   
 void  
 DataAbstract::getRefValue(int ref,  
                           DataArray& value)  
 {  
     throw DataException("Error - DataAbstract::getRefValue: Data type cannot be accessed by reference values.");  
 }  
   
104  int  int
105  DataAbstract::archiveData(ofstream& archiveFile,  DataAbstract::archiveData(ofstream& archiveFile,
106                            const ValueType::size_type noValues) const                            const ValueType::size_type noValues) const
# Line 131  DataAbstract::copyAll(const boost::pytho Line 120  DataAbstract::copyAll(const boost::pytho
120  {  {
121      throw DataException("Error - DataAbstract::copying data from numarray objects is not supported.");      throw DataException("Error - DataAbstract::copying data from numarray objects is not supported.");
122  }  }
123    void
124    DataAbstract::copyToDataPoint(const int sampleNo, const int dataPointNo, const double value)
125    {
126        throw DataException("Error - DataAbstract::copying data from double value to a single data point is not supported.");
127    }
128    void
129    DataAbstract::copyToDataPoint(const int sampleNo, const int dataPointNo, const boost::python::numeric::array& value)
130    {
131        throw DataException("Error - DataAbstract::copying data from numarray objects to a single data point is not supported.");
132    }
133    
134    void
135    DataAbstract::symmetric(DataAbstract* ev)
136    {
137        throw DataException("Error - DataAbstract::symmetric is not supported.");
138    }
139    
140    void
141    DataAbstract::nonsymmetric(DataAbstract* ev)
142    {
143        throw DataException("Error - DataAbstract::nonsymmetric is not supported.");
144    }
145    
146    void
147    DataAbstract::trace(DataAbstract* ev, int axis_offset)
148    {
149        throw DataException("Error - DataAbstract::trace is not supported.");
150    }
151    
152    void
153    DataAbstract::swapaxes(DataAbstract* ev, int axis0, int axis1)
154    {
155        throw DataException("Error - DataAbstract::component swapaxes is not supported.");
156    }
157    void
158    DataAbstract::transpose(DataAbstract* ev, int axis_offset)
159    {
160        throw DataException("Error - DataAbstract::transpose is not supported.");
161    }
162    
163    void
164    DataAbstract::eigenvalues(DataAbstract* ev)
165    {
166        throw DataException("Error - DataAbstract::eigenvalues is not supported.");
167    }
168    void
169    DataAbstract::eigenvalues_and_eigenvectors(DataAbstract* ev,DataAbstract* V,const double tol)
170    {
171        throw DataException("Error - DataAbstract::eigenvalues_and_eigenvectors is not supported.");
172    
173    }
174    void
175    DataAbstract::setToZero()
176    {
177        throw DataException("Error - DataAbstract:: cannot set values to zero.");
178    }
179    
180    
181    
182  }  // end of namespace  }  // end of namespace

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

  ViewVC Help
Powered by ViewVC 1.1.26