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

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

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

revision 110 by jgs, Mon Feb 14 04:14:42 2005 UTC revision 121 by jgs, Fri May 6 04:26:16 2005 UTC
# Line 18  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 28  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 120  escript::Data AbstractDomain::getNormal( Line 120  escript::Data AbstractDomain::getNormal(
120    throwStandardException("AbstractDomain::getNormal");    throwStandardException("AbstractDomain::getNormal");
121    return Data();    return Data();
122  }  }
123    
124  escript::Data AbstractDomain::getSize() const  escript::Data AbstractDomain::getSize() const
125  {  {
126    throwStandardException("AbstractDomain::getSize");    throwStandardException("AbstractDomain::getSize");
127    return Data();    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 136  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 180  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.110  
changed lines
  Added in v.121

  ViewVC Help
Powered by ViewVC 1.1.26