/[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 110 by jgs, Mon Feb 14 04:14:42 2005 UTC trunk/escript/src/AbstractDomain.cpp revision 480 by jgs, Wed Feb 1 05:15:12 2006 UTC
# Line 13  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    #include "Data.h"
22    
23    using namespace std;
24    
25  namespace escript {  namespace escript {
26    
# Line 28  AbstractDomain::~AbstractDomain() { Line 32  AbstractDomain::~AbstractDomain() {
32    
33  void AbstractDomain::throwStandardException(const std::string& functionName) const  void AbstractDomain::throwStandardException(const std::string& functionName) const
34  {  {
35    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.");  
36  }  }
37    
38  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
# Line 120  escript::Data AbstractDomain::getNormal( Line 123  escript::Data AbstractDomain::getNormal(
123    throwStandardException("AbstractDomain::getNormal");    throwStandardException("AbstractDomain::getNormal");
124    return Data();    return Data();
125  }  }
126    
127  escript::Data AbstractDomain::getSize() const  escript::Data AbstractDomain::getSize() const
128  {  {
129    throwStandardException("AbstractDomain::getSize");    throwStandardException("AbstractDomain::getSize");
130    return Data();    return Data();
131  }  }
132    
133  void AbstractDomain::setToX(escript::Data& out) const  void AbstractDomain::setToX(escript::Data& out) const
134  {  {
135    throwStandardException("AbstractDomain::setToX");    throwStandardException("AbstractDomain::setToX");
# Line 136  void AbstractDomain::setToNormal(escript Line 141  void AbstractDomain::setToNormal(escript
141    throwStandardException("AbstractDomain::setToNormal");    throwStandardException("AbstractDomain::setToNormal");
142    return;    return;
143  }  }
144    
145  void AbstractDomain::setToSize(escript::Data& out) const  void AbstractDomain::setToSize(escript::Data& out) const
146  {  {
147    throwStandardException("AbstractDomain::setToSize");    throwStandardException("AbstractDomain::setToSize");
# Line 148  void AbstractDomain::setToGradient(escri Line 154  void AbstractDomain::setToGradient(escri
154    return;    return;
155  }  }
156    
157  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
158  {  {
159    throwStandardException("AbstractDomain::saveDX");    throwStandardException("AbstractDomain::saveDX");
160    return;    return;
161  }  }
162    
163  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
164  {  {
165    throwStandardException("AbstractDomain::saveVTK");    throwStandardException("AbstractDomain::saveVTK");
166    return;    return;
# Line 180  bool AbstractDomain::isCellOriented(int Line 186  bool AbstractDomain::isCellOriented(int
186    
187  bool AbstractDomain::operator==(const AbstractDomain& other) const  bool AbstractDomain::operator==(const AbstractDomain& other) const
188  {  {
189    return (this==&other);    throwStandardException("AbstractDomain::operator==");
190      return false;
191  }  }
                                                                                                                                         
192  bool AbstractDomain::operator!=(const AbstractDomain& other) const  bool AbstractDomain::operator!=(const AbstractDomain& other) const
193  {  {
194    return (!operator==(other));    throwStandardException("AbstractDomain::operator!=");
195      return false;
196  }  }
197    
198  }  // end of namespace  } // end of namespace

Legend:
Removed from v.110  
changed lines
  Added in v.480

  ViewVC Help
Powered by ViewVC 1.1.26