/[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 1311 by gross, Thu May 10 08:11:31 2007 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 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 42  std::string AbstractDomain::getDescripti Line 54  std::string AbstractDomain::getDescripti
54    return "";    return "";
55  }  }
56    
 const  
 boost::python::str  
 AbstractDomain::str() const  
 {  
   return boost::python::str(getDescription().c_str());  
 }  
   
57  std::string AbstractDomain::functionSpaceTypeAsString(int functionSpaceType) const  std::string AbstractDomain::functionSpaceTypeAsString(int functionSpaceType) const
58  {  {
59    throwStandardException("AbstractDomain::functionSpaceTypeAsString");    throwStandardException("AbstractDomain::functionSpaceTypeAsString");
# Line 66  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  {  {

Legend:
Removed from v.1311  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26