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

revision 100 by jgs, Wed Dec 15 03:48:48 2004 UTC revision 121 by jgs, Fri May 6 04:26:16 2005 UTC
# Line 1  Line 1 
1    /* $Id$ */
2  /*  /*
3   ******************************************************************************   ******************************************************************************
4   *                                                                            *   *                                                                            *
# Line 17  Line 18 
18  #include "escript/Data/AbstractSystemMatrix.h"  #include "escript/Data/AbstractSystemMatrix.h"
19  #include "escript/Data/FunctionSpace.h"  #include "escript/Data/FunctionSpace.h"
20    
21    using namespace std;
22  namespace escript {  namespace escript {
23    
24  AbstractDomain::AbstractDomain() {  AbstractDomain::AbstractDomain() {
# Line 27  AbstractDomain::~AbstractDomain() { Line 29  AbstractDomain::~AbstractDomain() {
29    
30  void AbstractDomain::throwStandardException(const std::string& functionName) const  void AbstractDomain::throwStandardException(const std::string& functionName) const
31  {  {
32    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.");  
33  }  }
34    
35  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
# Line 67  void AbstractDomain::getTagList(int func Line 68  void AbstractDomain::getTagList(int func
68    return;    return;
69  }  }
70    
71    void AbstractDomain::getReferenceNoList(int functionSpaceType, int** referenceNoList, int* numReferenceNo) const
72    {
73      throwStandardException("AbstractDomain::getTagList");
74      return;
75    }
76    
77  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
78  {  {
79    throwStandardException("AbstractDomain::getDataShape");    throwStandardException("AbstractDomain::getDataShape");
# Line 79  int AbstractDomain::getTagFromSampleNo(i Line 86  int AbstractDomain::getTagFromSampleNo(i
86    return 0;    return 0;
87  }  }
88    
89    int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
90    {
91      throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
92      return 0;
93    }
94    
95  void AbstractDomain::setNewX(const escript::Data& arg)  void AbstractDomain::setNewX(const escript::Data& arg)
96  {  {
97    throwStandardException("AbstractDomain::setNewX");    throwStandardException("AbstractDomain::setNewX");
# Line 96  void AbstractDomain::interpolateACross(e Line 109  void AbstractDomain::interpolateACross(e
109    return;    return;
110  }  }
111    
112    escript::Data AbstractDomain::getX() const
113    {
114      throwStandardException("AbstractDomain::getX");
115      return Data();
116    }
117    
118    escript::Data AbstractDomain::getNormal() const
119    {
120      throwStandardException("AbstractDomain::getNormal");
121      return Data();
122    }
123    
124    escript::Data AbstractDomain::getSize() const
125    {
126      throwStandardException("AbstractDomain::getSize");
127      return Data();
128    }
129    
130  void AbstractDomain::setToX(escript::Data& out) const  void AbstractDomain::setToX(escript::Data& out) const
131  {  {
132    throwStandardException("AbstractDomain::setToX");    throwStandardException("AbstractDomain::setToX");
# Line 107  void AbstractDomain::setToNormal(escript Line 138  void AbstractDomain::setToNormal(escript
138    throwStandardException("AbstractDomain::setToNormal");    throwStandardException("AbstractDomain::setToNormal");
139    return;    return;
140  }  }
141    
142  void AbstractDomain::setToSize(escript::Data& out) const  void AbstractDomain::setToSize(escript::Data& out) const
143  {  {
144    throwStandardException("AbstractDomain::setToSize");    throwStandardException("AbstractDomain::setToSize");
# Line 125  void AbstractDomain::saveDX(const std::s Line 157  void AbstractDomain::saveDX(const std::s
157    return;    return;
158  }  }
159    
160    void AbstractDomain::saveVTK(const std::string& filename,const escript::Data& arg) const
161    {
162      throwStandardException("AbstractDomain::saveVTK");
163      return;
164    }
165    
166  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
167  {  {
168    throwStandardException("AbstractDomain::probeInterpolationOnDomain");    throwStandardException("AbstractDomain::probeInterpolationOnDomain");
# Line 145  bool AbstractDomain::isCellOriented(int Line 183  bool AbstractDomain::isCellOriented(int
183    
184  bool AbstractDomain::operator==(const AbstractDomain& other) const  bool AbstractDomain::operator==(const AbstractDomain& other) const
185  {  {
186    return (this==&other);    throwStandardException("AbstractDomain::operator==");
187      return false;
188  }  }
189                                                                                                                                                                                                                                                                                
190  bool AbstractDomain::operator!=(const AbstractDomain& other) const  bool AbstractDomain::operator!=(const AbstractDomain& other) const
191  {  {
192    return (!operator==(other));    throwStandardException("AbstractDomain::operator!=");
193      return false;
194  }  }
195    
196  }  // end of namespace  } // end of namespace

Legend:
Removed from v.100  
changed lines
  Added in v.121

  ViewVC Help
Powered by ViewVC 1.1.26