/[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 100 by jgs, Wed Dec 15 03:48:48 2004 UTC trunk/escript/src/AbstractDomain.cpp revision 1137 by gross, Thu May 10 08:11:31 2007 UTC
# Line 1  Line 1 
1    /* $Id$ */
2  /*  /*
3   ******************************************************************************   ************************************************************
4   *                                                                            *   *          Copyright 2006 by ACcESS MNRF                   *
5   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *                                                          *
6   *                                                                            *   *              http://www.access.edu.au                    *
7   * This software is the property of ACcESS. No part of this code              *   *       Primary Business: Queensland, Australia            *
8   * may be copied in any form or by any means without the expressed written    *   *  Licensed under the Open Software License version 3.0    *
9   * consent of ACcESS.  Copying, use or modification of this software          *   *     http://www.opensource.org/licenses/osl-3.0.php       *
10   * by any unauthorised person is illegal unless that person has a software    *   *                                                          *
11   * license agreement with ACcESS.                                             *   ************************************************************
  *                                                                            *  
  ******************************************************************************  
12  */  */
13    
14  #include "escript/Data/AbstractDomain.h"  #include "AbstractDomain.h"
15  #include "escript/Data/DomainException.h"  #include "DomainException.h"
16  #include "escript/Data/AbstractSystemMatrix.h"  #include "Data.h"
17  #include "escript/Data/FunctionSpace.h"  
18    using namespace std;
19    
20  namespace escript {  namespace escript {
21    
# Line 27  AbstractDomain::~AbstractDomain() { Line 27  AbstractDomain::~AbstractDomain() {
27    
28  void AbstractDomain::throwStandardException(const std::string& functionName) const  void AbstractDomain::throwStandardException(const std::string& functionName) const
29  {  {
30    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.");  
31  }  }
32    
33  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const  bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
# Line 43  std::string AbstractDomain::getDescripti Line 42  std::string AbstractDomain::getDescripti
42    return "";    return "";
43  }  }
44    
45    const
46    boost::python::str
47    AbstractDomain::str() const
48    {
49      return boost::python::str(getDescription().c_str());
50    }
51    
52  std::string AbstractDomain::functionSpaceTypeAsString(int functionSpaceType) const  std::string AbstractDomain::functionSpaceTypeAsString(int functionSpaceType) const
53  {  {
54    throwStandardException("AbstractDomain::functionSpaceTypeAsString");    throwStandardException("AbstractDomain::functionSpaceTypeAsString");
# Line 61  void AbstractDomain::write(const std::st Line 67  void AbstractDomain::write(const std::st
67    return;    return;
68  }  }
69    
 void AbstractDomain::getTagList(int functionSpaceType, int** tagList, int* numTags) const  
 {  
   throwStandardException("AbstractDomain::getTagList");  
   return;  
 }  
   
70  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
71  {  {
72    throwStandardException("AbstractDomain::getDataShape");    throwStandardException("AbstractDomain::getDataShape");
# Line 79  int AbstractDomain::getTagFromSampleNo(i Line 79  int AbstractDomain::getTagFromSampleNo(i
79    return 0;    return 0;
80  }  }
81    
82    int* AbstractDomain::borrowSampleReferenceIDs(int functionSpaceType) const
83    {
84      throwStandardException("AbstractDomain::borrowSampleReferenceIDs");
85      return 0;
86    }
87    
88  void AbstractDomain::setNewX(const escript::Data& arg)  void AbstractDomain::setNewX(const escript::Data& arg)
89  {  {
90    throwStandardException("AbstractDomain::setNewX");    throwStandardException("AbstractDomain::setNewX");
# Line 96  void AbstractDomain::interpolateACross(e Line 102  void AbstractDomain::interpolateACross(e
102    return;    return;
103  }  }
104    
105    escript::Data AbstractDomain::getX() const
106    {
107      throwStandardException("AbstractDomain::getX");
108      return Data();
109    }
110    
111    escript::Data AbstractDomain::getNormal() const
112    {
113      throwStandardException("AbstractDomain::getNormal");
114      return Data();
115    }
116    
117    escript::Data AbstractDomain::getSize() const
118    {
119      throwStandardException("AbstractDomain::getSize");
120      return Data();
121    }
122    
123  void AbstractDomain::setToX(escript::Data& out) const  void AbstractDomain::setToX(escript::Data& out) const
124  {  {
125    throwStandardException("AbstractDomain::setToX");    throwStandardException("AbstractDomain::setToX");
# Line 107  void AbstractDomain::setToNormal(escript Line 131  void AbstractDomain::setToNormal(escript
131    throwStandardException("AbstractDomain::setToNormal");    throwStandardException("AbstractDomain::setToNormal");
132    return;    return;
133  }  }
134    
135  void AbstractDomain::setToSize(escript::Data& out) const  void AbstractDomain::setToSize(escript::Data& out) const
136  {  {
137    throwStandardException("AbstractDomain::setToSize");    throwStandardException("AbstractDomain::setToSize");
# Line 119  void AbstractDomain::setToGradient(escri Line 144  void AbstractDomain::setToGradient(escri
144    return;    return;
145  }  }
146    
147  void AbstractDomain::saveDX(const std::string& filename,const escript::Data& arg) const  void AbstractDomain::setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const
148    {
149      throwStandardException("AbstractDomain::setTags");
150      return;
151    }
152    
153    void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
154  {  {
155    throwStandardException("AbstractDomain::saveDX");    throwStandardException("AbstractDomain::saveDX");
156    return;    return;
157  }  }
158    
159    void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& 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 145  bool AbstractDomain::isCellOriented(int Line 182  bool AbstractDomain::isCellOriented(int
182    
183  bool AbstractDomain::operator==(const AbstractDomain& other) const  bool AbstractDomain::operator==(const AbstractDomain& other) const
184  {  {
185    return (this==&other);    throwStandardException("AbstractDomain::operator==");
186      return false;
187  }  }
                                                                                                                                         
188  bool AbstractDomain::operator!=(const AbstractDomain& other) const  bool AbstractDomain::operator!=(const AbstractDomain& other) const
189  {  {
190    return (!operator==(other));    throwStandardException("AbstractDomain::operator!=");
191      return false;
192    }
193    
194    AbstractDomain::StatusType AbstractDomain::getStatus() const
195    {
196      throwStandardException("AbstractDomain::getStatus");
197      return 0;
198    }
199    void AbstractDomain::setTagMap(const std::string& name,  int tag)
200    {
201      throwStandardException("AbstractDomain::set TagMap is not implemented.");
202  }  }
203    int AbstractDomain::getTag(const std::string& name) const
204    {
205      throwStandardException("AbstractDomain::getTag is not implemented.");
206      return 0;
207    }
208    
209    bool AbstractDomain::isValidTagName(const std::string& name) const
210    {
211      return false;
212    }
213    
214    std::string AbstractDomain::showTagNames() const
215    {
216      throwStandardException("AbstractDomain::showTagNames is not implemented.");
217      return string();
218    }
219    
220    
221    
222  }  // end of namespace  } // end of namespace

Legend:
Removed from v.100  
changed lines
  Added in v.1137

  ViewVC Help
Powered by ViewVC 1.1.26