/[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 110 by jgs, Mon Feb 14 04:14:42 2005 UTC revision 153 by jgs, Tue Oct 25 01:51:20 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    
23  namespace escript {  namespace escript {
24    
25  AbstractDomain::AbstractDomain() {  AbstractDomain::AbstractDomain() {
# Line 28  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 120  escript::Data AbstractDomain::getNormal( Line 121  escript::Data AbstractDomain::getNormal(
121    throwStandardException("AbstractDomain::getNormal");    throwStandardException("AbstractDomain::getNormal");
122    return Data();    return Data();
123  }  }
124    
125  escript::Data AbstractDomain::getSize() const  escript::Data AbstractDomain::getSize() const
126  {  {
127    throwStandardException("AbstractDomain::getSize");    throwStandardException("AbstractDomain::getSize");
128    return Data();    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 136  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 148  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 escript::Data& arg) const  void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
162  {  {
163    throwStandardException("AbstractDomain::saveVTK");    throwStandardException("AbstractDomain::saveVTK");
164    return;    return;
# Line 180  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.110  
changed lines
  Added in v.153

  ViewVC Help
Powered by ViewVC 1.1.26