/[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 474 by jgs, Mon Jan 30 04:23:44 2006 UTC
# Line 1  Line 1 
1    /* $Id$ */
2  /*  /*
3   ******************************************************************************   ******************************************************************************
4   *                                                                            *   *                                                                            *
# Line 12  Line 13 
13   ******************************************************************************   ******************************************************************************
14  */  */
15    
16  #include "escript/Data/AbstractDomain.h"  #include "AbstractDomain.h"
17  #include "escript/Data/DomainException.h"  #include "DomainException.h"
18  #include "escript/Data/AbstractSystemMatrix.h"  #include "AbstractSystemMatrix.h"
19  #include "escript/Data/FunctionSpace.h"  #include "FunctionSpace.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 67  void AbstractDomain::getTagList(int func Line 69  void AbstractDomain::getTagList(int func
69    return;    return;
70  }  }
71    
72    void AbstractDomain::getReferenceNoList(int functionSpaceType, int** referenceNoList, int* numReferenceNo) const
73    {
74      throwStandardException("AbstractDomain::getTagList");
75      return;
76    }
77    
78  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
79  {  {
80    throwStandardException("AbstractDomain::getDataShape");    throwStandardException("AbstractDomain::getDataShape");
# Line 79  int AbstractDomain::getTagFromSampleNo(i Line 87  int AbstractDomain::getTagFromSampleNo(i
87    return 0;    return 0;
88  }  }
89    
90    int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
91    {
92      throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
93      return 0;
94    }
95    
96  void AbstractDomain::setNewX(const escript::Data& arg)  void AbstractDomain::setNewX(const escript::Data& arg)
97  {  {
98    throwStandardException("AbstractDomain::setNewX");    throwStandardException("AbstractDomain::setNewX");
# Line 96  void AbstractDomain::interpolateACross(e Line 110  void AbstractDomain::interpolateACross(e
110    return;    return;
111  }  }
112    
113    escript::Data AbstractDomain::getX() const
114    {
115      throwStandardException("AbstractDomain::getX");
116      return Data();
117    }
118    
119    escript::Data AbstractDomain::getNormal() const
120    {
121      throwStandardException("AbstractDomain::getNormal");
122      return Data();
123    }
124    
125    escript::Data AbstractDomain::getSize() const
126    {
127      throwStandardException("AbstractDomain::getSize");
128      return Data();
129    }
130    
131  void AbstractDomain::setToX(escript::Data& out) const  void AbstractDomain::setToX(escript::Data& out) const
132  {  {
133    throwStandardException("AbstractDomain::setToX");    throwStandardException("AbstractDomain::setToX");
# Line 107  void AbstractDomain::setToNormal(escript Line 139  void AbstractDomain::setToNormal(escript
139    throwStandardException("AbstractDomain::setToNormal");    throwStandardException("AbstractDomain::setToNormal");
140    return;    return;
141  }  }
142    
143  void AbstractDomain::setToSize(escript::Data& out) const  void AbstractDomain::setToSize(escript::Data& out) const
144  {  {
145    throwStandardException("AbstractDomain::setToSize");    throwStandardException("AbstractDomain::setToSize");
# Line 119  void AbstractDomain::setToGradient(escri Line 152  void AbstractDomain::setToGradient(escri
152    return;    return;
153  }  }
154    
155  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
156  {  {
157    throwStandardException("AbstractDomain::saveDX");    throwStandardException("AbstractDomain::saveDX");
158    return;    return;
159  }  }
160    
161    void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
162    {
163      throwStandardException("AbstractDomain::saveVTK");
164      return;
165    }
166    
167  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
168  {  {
169    throwStandardException("AbstractDomain::probeInterpolationOnDomain");    throwStandardException("AbstractDomain::probeInterpolationOnDomain");
# Line 145  bool AbstractDomain::isCellOriented(int Line 184  bool AbstractDomain::isCellOriented(int
184    
185  bool AbstractDomain::operator==(const AbstractDomain& other) const  bool AbstractDomain::operator==(const AbstractDomain& other) const
186  {  {
187    return (this==&other);    throwStandardException("AbstractDomain::operator==");
188      return false;
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.82  
changed lines
  Added in v.474

  ViewVC Help
Powered by ViewVC 1.1.26