/[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 82 by jgs, Tue Oct 26 06:53:54 2004 UTC trunk/escript/src/AbstractDomain.cpp revision 1044 by gross, Mon Mar 19 07:29: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 61  void AbstractDomain::write(const std::st Line 60  void AbstractDomain::write(const std::st
60    return;    return;
61  }  }
62    
 void AbstractDomain::getTagList(int functionSpaceType, int** tagList, int* numTags) const  
 {  
   throwStandardException("AbstractDomain::getTagList");  
   return;  
 }  
   
63  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
64  {  {
65    throwStandardException("AbstractDomain::getDataShape");    throwStandardException("AbstractDomain::getDataShape");
# Line 79  int AbstractDomain::getTagFromSampleNo(i Line 72  int AbstractDomain::getTagFromSampleNo(i
72    return 0;    return 0;
73  }  }
74    
75    int* AbstractDomain::borrowSampleReferenceIDs(int functionSpaceType) const
76    {
77      throwStandardException("AbstractDomain::borrowSampleReferenceIDs");
78      return 0;
79    }
80    
81  void AbstractDomain::setNewX(const escript::Data& arg)  void AbstractDomain::setNewX(const escript::Data& arg)
82  {  {
83    throwStandardException("AbstractDomain::setNewX");    throwStandardException("AbstractDomain::setNewX");
# Line 96  void AbstractDomain::interpolateACross(e Line 95  void AbstractDomain::interpolateACross(e
95    return;    return;
96  }  }
97    
98    escript::Data AbstractDomain::getX() const
99    {
100      throwStandardException("AbstractDomain::getX");
101      return Data();
102    }
103    
104    escript::Data AbstractDomain::getNormal() const
105    {
106      throwStandardException("AbstractDomain::getNormal");
107      return Data();
108    }
109    
110    escript::Data AbstractDomain::getSize() const
111    {
112      throwStandardException("AbstractDomain::getSize");
113      return Data();
114    }
115    
116  void AbstractDomain::setToX(escript::Data& out) const  void AbstractDomain::setToX(escript::Data& out) const
117  {  {
118    throwStandardException("AbstractDomain::setToX");    throwStandardException("AbstractDomain::setToX");
# Line 107  void AbstractDomain::setToNormal(escript Line 124  void AbstractDomain::setToNormal(escript
124    throwStandardException("AbstractDomain::setToNormal");    throwStandardException("AbstractDomain::setToNormal");
125    return;    return;
126  }  }
127    
128  void AbstractDomain::setToSize(escript::Data& out) const  void AbstractDomain::setToSize(escript::Data& out) const
129  {  {
130    throwStandardException("AbstractDomain::setToSize");    throwStandardException("AbstractDomain::setToSize");
# Line 119  void AbstractDomain::setToGradient(escri Line 137  void AbstractDomain::setToGradient(escri
137    return;    return;
138  }  }
139    
140  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
141    {
142      throwStandardException("AbstractDomain::setTags");
143      return;
144    }
145    
146    void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
147  {  {
148    throwStandardException("AbstractDomain::saveDX");    throwStandardException("AbstractDomain::saveDX");
149    return;    return;
150  }  }
151    
152    void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
153    {
154      throwStandardException("AbstractDomain::saveVTK");
155      return;
156    }
157    
158  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const  bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
159  {  {
160    throwStandardException("AbstractDomain::probeInterpolationOnDomain");    throwStandardException("AbstractDomain::probeInterpolationOnDomain");
# Line 145  bool AbstractDomain::isCellOriented(int Line 175  bool AbstractDomain::isCellOriented(int
175    
176  bool AbstractDomain::operator==(const AbstractDomain& other) const  bool AbstractDomain::operator==(const AbstractDomain& other) const
177  {  {
178    return (this==&other);    throwStandardException("AbstractDomain::operator==");
179      return false;
180  }  }
                                                                                                                                         
181  bool AbstractDomain::operator!=(const AbstractDomain& other) const  bool AbstractDomain::operator!=(const AbstractDomain& other) const
182  {  {
183    return (!operator==(other));    throwStandardException("AbstractDomain::operator!=");
184      return false;
185    }
186    
187    AbstractDomain::StatusType AbstractDomain::getStatus() const
188    {
189      throwStandardException("AbstractDomain::getStatus");
190      return 0;
191    }
192    void AbstractDomain::setTagMap(const std::string& name,  int tag)
193    {
194      throwStandardException("AbstractDomain::set TagMap is not implemented.");
195  }  }
196    int AbstractDomain::getTag(const std::string& name) const
197    {
198      throwStandardException("AbstractDomain::getTag is not implemented.");
199      return 0;
200    }
201    
202    bool AbstractDomain::isValidTagName(const std::string& name) const
203    {
204      return false;
205    }
206    
207    std::string AbstractDomain::showTagNames() const
208    {
209      throwStandardException("AbstractDomain::showTagNames is not implemented.");
210      return string();
211    }
212    
213    
214    
215  }  // end of namespace  } // end of namespace

Legend:
Removed from v.82  
changed lines
  Added in v.1044

  ViewVC Help
Powered by ViewVC 1.1.26