/[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 97 by jgs, Tue Dec 14 05:39:33 2004 UTC trunk/escript/src/AbstractDomain.cpp revision 547 by gross, Tue Feb 21 06:10:54 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 62  void AbstractDomain::write(const std::st Line 65  void AbstractDomain::write(const std::st
65    return;    return;
66  }  }
67    
 void AbstractDomain::getTagList(int functionSpaceType, int** tagList, int* numTags) const  
 {  
   throwStandardException("AbstractDomain::getTagList");  
   return;  
 }  
   
68  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
69  {  {
70    throwStandardException("AbstractDomain::getDataShape");    throwStandardException("AbstractDomain::getDataShape");
# Line 80  int AbstractDomain::getTagFromSampleNo(i Line 77  int AbstractDomain::getTagFromSampleNo(i
77    return 0;    return 0;
78  }  }
79    
80    int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
81    {
82      throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
83      return 0;
84    }
85    
86  void AbstractDomain::setNewX(const escript::Data& arg)  void AbstractDomain::setNewX(const escript::Data& arg)
87  {  {
88    throwStandardException("AbstractDomain::setNewX");    throwStandardException("AbstractDomain::setNewX");
# Line 108  escript::Data AbstractDomain::getNormal( Line 111  escript::Data AbstractDomain::getNormal(
111    throwStandardException("AbstractDomain::getNormal");    throwStandardException("AbstractDomain::getNormal");
112    return Data();    return Data();
113  }  }
114    
115  escript::Data AbstractDomain::getSize() const  escript::Data AbstractDomain::getSize() const
116  {  {
117    throwStandardException("AbstractDomain::getSize");    throwStandardException("AbstractDomain::getSize");
118    return Data();    return Data();
119  }  }
120    
121  void AbstractDomain::setToX(escript::Data& out) const  void AbstractDomain::setToX(escript::Data& out) const
122  {  {
123    throwStandardException("AbstractDomain::setToX");    throwStandardException("AbstractDomain::setToX");
# Line 124  void AbstractDomain::setToNormal(escript Line 129  void AbstractDomain::setToNormal(escript
129    throwStandardException("AbstractDomain::setToNormal");    throwStandardException("AbstractDomain::setToNormal");
130    return;    return;
131  }  }
132    
133  void AbstractDomain::setToSize(escript::Data& out) const  void AbstractDomain::setToSize(escript::Data& out) const
134  {  {
135    throwStandardException("AbstractDomain::setToSize");    throwStandardException("AbstractDomain::setToSize");
# Line 136  void AbstractDomain::setToGradient(escri Line 142  void AbstractDomain::setToGradient(escri
142    return;    return;
143  }  }
144    
145  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
146  {  {
147    throwStandardException("AbstractDomain::saveDX");    throwStandardException("AbstractDomain::saveDX");
148    return;    return;
149  }  }
150    
151    void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
152    {
153      throwStandardException("AbstractDomain::saveVTK");
154      return;
155    }
156    
157  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
158  {  {
159    throwStandardException("AbstractDomain::probeInterpolationOnDomain");    throwStandardException("AbstractDomain::probeInterpolationOnDomain");
# Line 162  bool AbstractDomain::isCellOriented(int Line 174  bool AbstractDomain::isCellOriented(int
174    
175  bool AbstractDomain::operator==(const AbstractDomain& other) const  bool AbstractDomain::operator==(const AbstractDomain& other) const
176  {  {
177    return (this==&other);    throwStandardException("AbstractDomain::operator==");
178      return false;
179  }  }
                                                                                                                                         
180  bool AbstractDomain::operator!=(const AbstractDomain& other) const  bool AbstractDomain::operator!=(const AbstractDomain& other) const
181  {  {
182    return (!operator==(other));    throwStandardException("AbstractDomain::operator!=");
183      return false;
184  }  }
185    
186  }  // end of namespace  } // end of namespace

Legend:
Removed from v.97  
changed lines
  Added in v.547

  ViewVC Help
Powered by ViewVC 1.1.26