/[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 480 by jgs, Wed Feb 1 05:15:12 2006 UTC revision 1800 by ksteube, Thu Sep 18 05:28:20 2008 UTC
# Line 1  Line 1 
1    
2  /* $Id$ */  /* $Id$ */
3  /*  
4   ******************************************************************************  /*******************************************************
5   *                                                                            *   *
6   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *           Copyright 2003-2007 by ACceSS MNRF
7   *                                                                            *   *       Copyright 2007 by University of Queensland
8   * This software is the property of ACcESS. No part of this code              *   *
9   * may be copied in any form or by any means without the expressed written    *   *                http://esscc.uq.edu.au
10   * consent of ACcESS.  Copying, use or modification of this software          *   *        Primary Business: Queensland, Australia
11   * by any unauthorised person is illegal unless that person has a software    *   *  Licensed under the Open Software License version 3.0
12   * license agreement with ACcESS.                                             *   *     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"
 //#include "AbstractSystemMatrix.h"  
 //#include "FunctionSpace.h"  
   
18  #include "Data.h"  #include "Data.h"
19    #include "paso/Paso_MPI.h"
20    
21  using namespace std;  using namespace std;
22    
# Line 30  AbstractDomain::AbstractDomain() { Line 28  AbstractDomain::AbstractDomain() {
28  AbstractDomain::~AbstractDomain() {  AbstractDomain::~AbstractDomain() {
29  }  }
30    
31    int AbstractDomain::getMPISize() const
32    {
33       return 1;
34    }
35    int AbstractDomain::getMPIRank() const
36    {
37       return 0;
38    }
39    MPI_Comm AbstractDomain::getMPIComm() const
40    {
41       return 0;
42    }
43    
44    
45  void AbstractDomain::throwStandardException(const std::string& functionName) const  void AbstractDomain::throwStandardException(const std::string& functionName) const
46  {  {
47    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 64  void AbstractDomain::write(const std::st Line 76  void AbstractDomain::write(const std::st
76    throwStandardException("AbstractDomain::write");    throwStandardException("AbstractDomain::write");
77    return;    return;
78  }  }
79    void AbstractDomain::dump(const std::string& filename) const
 void AbstractDomain::getTagList(int functionSpaceType, int** tagList, int* numTags) const  
 {  
   throwStandardException("AbstractDomain::getTagList");  
   return;  
 }  
   
 void AbstractDomain::getReferenceNoList(int functionSpaceType, int** referenceNoList, int* numReferenceNo) const  
80  {  {
81    throwStandardException("AbstractDomain::getTagList");    throwStandardException("AbstractDomain::dump");
82    return;    return;
83  }  }
84    
# Line 89  int AbstractDomain::getTagFromSampleNo(i Line 94  int AbstractDomain::getTagFromSampleNo(i
94    return 0;    return 0;
95  }  }
96    
97  int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const  int* AbstractDomain::borrowSampleReferenceIDs(int functionSpaceType) const
98  {  {
99    throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");    throwStandardException("AbstractDomain::borrowSampleReferenceIDs");
100    return 0;    return 0;
101  }  }
102    
# Line 154  void AbstractDomain::setToGradient(escri Line 159  void AbstractDomain::setToGradient(escri
159    return;    return;
160  }  }
161    
162    void AbstractDomain::setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const
163    {
164      throwStandardException("AbstractDomain::setTags");
165      return;
166    }
167    
168  void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const  void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
169  {  {
170    throwStandardException("AbstractDomain::saveDX");    throwStandardException("AbstractDomain::saveDX");
# Line 195  bool AbstractDomain::operator!=(const Ab Line 206  bool AbstractDomain::operator!=(const Ab
206    return false;    return false;
207  }  }
208    
209    AbstractDomain::StatusType AbstractDomain::getStatus() const
210    {
211      throwStandardException("AbstractDomain::getStatus");
212      return 0;
213    }
214    void AbstractDomain::setTagMap(const std::string& name,  int tag)
215    {
216      throwStandardException("AbstractDomain::set TagMap is not implemented.");
217    }
218    int AbstractDomain::getTag(const std::string& name) const
219    {
220      throwStandardException("AbstractDomain::getTag is not implemented.");
221      return 0;
222    }
223    
224    bool AbstractDomain::isValidTagName(const std::string& name) const
225    {
226      return false;
227    }
228    
229    std::string AbstractDomain::showTagNames() const
230    {
231      throwStandardException("AbstractDomain::showTagNames is not implemented.");
232      return string();
233    }
234    
235    int AbstractDomain::getNumberOfTagsInUse(int functionSpaceCode) const
236    {
237      throwStandardException("AbstractDomain::getNumberOfTagsInUse is not implemented.");
238      return 0;
239    }
240    int* AbstractDomain::borrowListOfTagsInUse(int functionSpaceCode) const
241    {
242      throwStandardException("AbstractDomain::borrowListOfTagsInUse is not implemented.");
243      return NULL;
244    }
245    
246    
247    
248    
249    
250    
251  } // end of namespace  } // end of namespace

Legend:
Removed from v.480  
changed lines
  Added in v.1800

  ViewVC Help
Powered by ViewVC 1.1.26