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

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

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

trunk/esys2/escript/src/Data/AbstractDomain.cpp revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC trunk/escript/src/AbstractDomain.cpp revision 615 by elspeth, Wed Mar 22 02:12:00 2006 UTC
# Line 1  Line 1 
1    /* $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/AbstractDomain.h"  #include "AbstractDomain.h"
15  #include "escript/Data/DomainException.h"  #include "DomainException.h"
16  #include "escript/Data/AbstractSystemMatrix.h"  //#include "AbstractSystemMatrix.h"
17  #include "escript/Data/FunctionSpace.h"  //#include "FunctionSpace.h"
18    
19    #include "Data.h"
20    
21    using namespace std;
22    
23  namespace escript {  namespace escript {
24    
# Line 27  AbstractDomain::~AbstractDomain() { Line 30  AbstractDomain::~AbstractDomain() {
30    
31  void AbstractDomain::throwStandardException(const std::string& functionName) const  void AbstractDomain::throwStandardException(const std::string& functionName) const
32  {  {
33    throw DomainException("Error - Base class function: " +    throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");
             functionName + " should not be called. Programming error.");  
34  }  }
35    
36  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
# Line 61  void AbstractDomain::write(const std::st Line 63  void AbstractDomain::write(const std::st
63    return;    return;
64  }  }
65    
 void AbstractDomain::getTagList(int functionSpaceType, int** tagList, int* numTags) const  
 {  
   throwStandardException("AbstractDomain::getTagList");  
   return;  
 }  
   
66  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
67  {  {
68    throwStandardException("AbstractDomain::getDataShape");    throwStandardException("AbstractDomain::getDataShape");
# Line 79  int AbstractDomain::getTagFromSampleNo(i Line 75  int AbstractDomain::getTagFromSampleNo(i
75    return 0;    return 0;
76  }  }
77    
78    int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
79    {
80      throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
81      return 0;
82    }
83    
84  void AbstractDomain::setNewX(const escript::Data& arg)  void AbstractDomain::setNewX(const escript::Data& arg)
85  {  {
86    throwStandardException("AbstractDomain::setNewX");    throwStandardException("AbstractDomain::setNewX");
# Line 96  void AbstractDomain::interpolateACross(e Line 98  void AbstractDomain::interpolateACross(e
98    return;    return;
99  }  }
100    
101    escript::Data AbstractDomain::getX() const
102    {
103      throwStandardException("AbstractDomain::getX");
104      return Data();
105    }
106    
107    escript::Data AbstractDomain::getNormal() const
108    {
109      throwStandardException("AbstractDomain::getNormal");
110      return Data();
111    }
112    
113    escript::Data AbstractDomain::getSize() const
114    {
115      throwStandardException("AbstractDomain::getSize");
116      return Data();
117    }
118    
119  void AbstractDomain::setToX(escript::Data& out) const  void AbstractDomain::setToX(escript::Data& out) const
120  {  {
121    throwStandardException("AbstractDomain::setToX");    throwStandardException("AbstractDomain::setToX");
# Line 107  void AbstractDomain::setToNormal(escript Line 127  void AbstractDomain::setToNormal(escript
127    throwStandardException("AbstractDomain::setToNormal");    throwStandardException("AbstractDomain::setToNormal");
128    return;    return;
129  }  }
130    
131  void AbstractDomain::setToSize(escript::Data& out) const  void AbstractDomain::setToSize(escript::Data& out) const
132  {  {
133    throwStandardException("AbstractDomain::setToSize");    throwStandardException("AbstractDomain::setToSize");
# Line 119  void AbstractDomain::setToGradient(escri Line 140  void AbstractDomain::setToGradient(escri
140    return;    return;
141  }  }
142    
143  void AbstractDomain::saveDX(const std::string& filename,const escript::Data& arg) const  void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
144  {  {
145    throwStandardException("AbstractDomain::saveDX");    throwStandardException("AbstractDomain::saveDX");
146    return;    return;
147  }  }
148    
149    void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
150    {
151      throwStandardException("AbstractDomain::saveVTK");
152      return;
153    }
154    
155  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
156  {  {
157    throwStandardException("AbstractDomain::probeInterpolationOnDomain");    throwStandardException("AbstractDomain::probeInterpolationOnDomain");
# Line 145  bool AbstractDomain::isCellOriented(int Line 172  bool AbstractDomain::isCellOriented(int
172    
173  bool AbstractDomain::operator==(const AbstractDomain& other) const  bool AbstractDomain::operator==(const AbstractDomain& other) const
174  {  {
175    return (this==&other);    throwStandardException("AbstractDomain::operator==");
176      return false;
177  }  }
                                                                                                                                         
178  bool AbstractDomain::operator!=(const AbstractDomain& other) const  bool AbstractDomain::operator!=(const AbstractDomain& other) const
179  {  {
180    return (!operator==(other));    throwStandardException("AbstractDomain::operator!=");
181      return false;
182  }  }
183    
184  }  // end of namespace  } // end of namespace

Legend:
Removed from v.82  
changed lines
  Added in v.615

  ViewVC Help
Powered by ViewVC 1.1.26