/[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 102 by jgs, Wed Dec 15 07:08:39 2004 UTC revision 115 by jgs, Fri Mar 4 07:12:47 2005 UTC
# Line 28  AbstractDomain::~AbstractDomain() { Line 28  AbstractDomain::~AbstractDomain() {
28    
29  void AbstractDomain::throwStandardException(const std::string& functionName) const  void AbstractDomain::throwStandardException(const std::string& functionName) const
30  {  {
31    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.");  
32  }  }
33    
34  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
# Line 68  void AbstractDomain::getTagList(int func Line 67  void AbstractDomain::getTagList(int func
67    return;    return;
68  }  }
69    
70    void AbstractDomain::getReferenceNoList(int functionSpaceType, int** referenceNoList, int* numReferenceNo) const
71    {
72      throwStandardException("AbstractDomain::getTagList");
73      return;
74    }
75    
76  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
77  {  {
78    throwStandardException("AbstractDomain::getDataShape");    throwStandardException("AbstractDomain::getDataShape");
# Line 80  int AbstractDomain::getTagFromSampleNo(i Line 85  int AbstractDomain::getTagFromSampleNo(i
85    return 0;    return 0;
86  }  }
87    
88    int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
89    {
90      throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
91      return 0;
92    }
93    
94  void AbstractDomain::setNewX(const escript::Data& arg)  void AbstractDomain::setNewX(const escript::Data& arg)
95  {  {
96    throwStandardException("AbstractDomain::setNewX");    throwStandardException("AbstractDomain::setNewX");
# Line 108  escript::Data AbstractDomain::getNormal( Line 119  escript::Data AbstractDomain::getNormal(
119    throwStandardException("AbstractDomain::getNormal");    throwStandardException("AbstractDomain::getNormal");
120    return Data();    return Data();
121  }  }
122    
123  escript::Data AbstractDomain::getSize() const  escript::Data AbstractDomain::getSize() const
124  {  {
125    throwStandardException("AbstractDomain::getSize");    throwStandardException("AbstractDomain::getSize");
126    return Data();    return Data();
127  }  }
128    
129  void AbstractDomain::setToX(escript::Data& out) const  void AbstractDomain::setToX(escript::Data& out) const
130  {  {
131    throwStandardException("AbstractDomain::setToX");    throwStandardException("AbstractDomain::setToX");
# Line 124  void AbstractDomain::setToNormal(escript Line 137  void AbstractDomain::setToNormal(escript
137    throwStandardException("AbstractDomain::setToNormal");    throwStandardException("AbstractDomain::setToNormal");
138    return;    return;
139  }  }
140    
141  void AbstractDomain::setToSize(escript::Data& out) const  void AbstractDomain::setToSize(escript::Data& out) const
142  {  {
143    throwStandardException("AbstractDomain::setToSize");    throwStandardException("AbstractDomain::setToSize");
# Line 142  void AbstractDomain::saveDX(const std::s Line 156  void AbstractDomain::saveDX(const std::s
156    return;    return;
157  }  }
158    
159    void AbstractDomain::saveVTK(const std::string& filename,const escript::Data& arg) const
160    {
161      throwStandardException("AbstractDomain::saveVTK");
162      return;
163    }
164    
165  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
166  {  {
167    throwStandardException("AbstractDomain::probeInterpolationOnDomain");    throwStandardException("AbstractDomain::probeInterpolationOnDomain");
# Line 170  bool AbstractDomain::operator!=(const Ab Line 190  bool AbstractDomain::operator!=(const Ab
190    return (!operator==(other));    return (!operator==(other));
191  }  }
192    
193  }  // end of namespace  } // end of namespace

Legend:
Removed from v.102  
changed lines
  Added in v.115

  ViewVC Help
Powered by ViewVC 1.1.26