/[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

revision 964 by gross, Tue Feb 13 05:10:26 2007 UTC revision 1716 by gross, Thu Aug 21 05:03:49 2008 UTC
# Line 1  Line 1 
1    
2  /* $Id$ */  /* $Id$ */
3  /*  
4   ************************************************************  /*******************************************************
5   *          Copyright 2006 by ACcESS MNRF                   *   *
6   *                                                          *   *           Copyright 2003-2007 by ACceSS MNRF
7   *              http://www.access.edu.au                    *   *       Copyright 2007 by University of Queensland
8   *       Primary Business: Queensland, Australia            *   *
9   *  Licensed under the Open Software License version 3.0    *   *                http://esscc.uq.edu.au
10   *     http://www.opensource.org/licenses/osl-3.0.php       *   *        Primary Business: Queensland, Australia
11   *                                                          *   *  Licensed under the Open Software License version 3.0
12   ************************************************************   *     http://www.opensource.org/licenses/osl-3.0.php
13  */   *
14     *******************************************************/
15    
16  #include "AbstractDomain.h"  #include "AbstractDomain.h"
17  #include "DomainException.h"  #include "DomainException.h"
# Line 25  AbstractDomain::AbstractDomain() { Line 27  AbstractDomain::AbstractDomain() {
27  AbstractDomain::~AbstractDomain() {  AbstractDomain::~AbstractDomain() {
28  }  }
29    
30    int AbstractDomain::getMPISize() const
31    {
32       return 1;
33    }
34    int AbstractDomain::getMPIRank() const
35    {
36       return 0;
37    }
38    
39    
40  void AbstractDomain::throwStandardException(const std::string& functionName) const  void AbstractDomain::throwStandardException(const std::string& functionName) const
41  {  {
42    throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");    throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");
# Line 59  void AbstractDomain::write(const std::st Line 71  void AbstractDomain::write(const std::st
71    throwStandardException("AbstractDomain::write");    throwStandardException("AbstractDomain::write");
72    return;    return;
73  }  }
74    void AbstractDomain::dump(const std::string& filename) const
75    {
76      throwStandardException("AbstractDomain::dump");
77      return;
78    }
79    
80  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
81  {  {
# Line 189  AbstractDomain::StatusType AbstractDomai Line 206  AbstractDomain::StatusType AbstractDomai
206    throwStandardException("AbstractDomain::getStatus");    throwStandardException("AbstractDomain::getStatus");
207    return 0;    return 0;
208  }  }
209    void AbstractDomain::setTagMap(const std::string& name,  int tag)
210    {
211      throwStandardException("AbstractDomain::set TagMap is not implemented.");
212    }
213    int AbstractDomain::getTag(const std::string& name) const
214    {
215      throwStandardException("AbstractDomain::getTag is not implemented.");
216      return 0;
217    }
218    
219    bool AbstractDomain::isValidTagName(const std::string& name) const
220    {
221      return false;
222    }
223    
224    std::string AbstractDomain::showTagNames() const
225    {
226      throwStandardException("AbstractDomain::showTagNames is not implemented.");
227      return string();
228    }
229    
230    int AbstractDomain::getNumberOfTagsInUse(int functionSpaceCode) const
231    {
232      throwStandardException("AbstractDomain::getNumberOfTagsInUse is not implemented.");
233      return 0;
234    }
235    int* AbstractDomain::borrowListOfTagsInUse(int functionSpaceCode) const
236    {
237      throwStandardException("AbstractDomain::borrowListOfTagsInUse is not implemented.");
238      return NULL;
239    }
240    
241    
242    
243    
244    
245    
246  } // end of namespace  } // end of namespace

Legend:
Removed from v.964  
changed lines
  Added in v.1716

  ViewVC Help
Powered by ViewVC 1.1.26