/[escript]/branches/arrexp_2137_win_merge/escript/src/NullDomain.cpp
ViewVC logotype

Diff of /branches/arrexp_2137_win_merge/escript/src/NullDomain.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 1802 by jfenwick, Tue Sep 23 01:03:29 2008 UTC
# Line 1  Line 1 
1  /*  
2   ************************************************************  /* $Id$ */
3   *          Copyright 2006 by ACcESS MNRF                   *  
4   *                                                          *  /*******************************************************
5   *              http://www.access.edu.au                    *   *
6   *       Primary Business: Queensland, Australia            *   *           Copyright 2003-2007 by ACceSS MNRF
7   *  Licensed under the Open Software License version 3.0    *   *       Copyright 2007 by University of Queensland
8   *     http://www.opensource.org/licenses/osl-3.0.php       *   *
9   *                                                          *   *                http://esscc.uq.edu.au
10   ************************************************************   *        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 "NullDomain.h"  #include "NullDomain.h"
17    
18  namespace escript {  namespace escript {
19    
20    namespace {
21    int defaultList[1]={0};     // an array to return in borrowListOfTagsInUse();
22    int NullDomainFS=1;     // Null domains only support 1 functionspace type.
23                // The choice of =1 as the value is arbitrary
24    }
25    
26    
27  NullDomain::NullDomain() {  NullDomain::NullDomain() {
28  }  }
29    
# Line 31  std::string NullDomain::getDescription() Line 41  std::string NullDomain::getDescription()
41    
42  int NullDomain::getContinuousFunctionCode() const  int NullDomain::getContinuousFunctionCode() const
43  {  {
44    //    return NullDomainFS;
   // return an arbitary value  
   return 1;  
45  }  }
46    
47  int NullDomain::getFunctionCode() const  int NullDomain::getFunctionCode() const
48  {  {
49    //    return NullDomainFS;
   // return an arbitary value  
   return 1;  
50  }  }
51    
52  int NullDomain::getFunctionOnBoundaryCode() const  int NullDomain::getFunctionOnBoundaryCode() const
53  {  {
54    //    return NullDomainFS;
   // return an arbitary value  
   return 1;  
55  }  }
56    
57  int NullDomain::getFunctionOnContactZeroCode() const  int NullDomain::getFunctionOnContactZeroCode() const
58  {  {
59    //    return NullDomainFS;
   // return an arbitary value  
   return 1;  
60  }  }
61    
62  int NullDomain::getFunctionOnContactOneCode() const  int NullDomain::getFunctionOnContactOneCode() const
63  {  {
64    //    return NullDomainFS;
   // return an arbitary value  
   return 1;  
65  }  }
66    
67  int NullDomain::getSolutionCode() const  int NullDomain::getSolutionCode() const
68  {  {
69    //    return NullDomainFS;
   // return an arbitary value  
   return 1;  
70  }  }
71    
72  int NullDomain::getReducedSolutionCode() const  int NullDomain::getReducedSolutionCode() const
73  {  {
74    //    return NullDomainFS;
   // return an arbitary value  
   return 1;  
75  }  }
76    
77  int NullDomain::getDiracDeltaFunctionCode() const  int NullDomain::getDiracDeltaFunctionCode() const
78  {  {
79    //    return NullDomainFS;
   // return an arbitary value  
   return 1;  
80  }  }
81    
82  std::pair<int,int> NullDomain::getDataShape(int functionSpaceCode) const  std::pair<int,int> NullDomain::getDataShape(int functionSpaceCode) const
# Line 130  bool NullDomain::operator!=(const Abstra Line 124  bool NullDomain::operator!=(const Abstra
124    return(!(*this==other));    return(!(*this==other));
125  }  }
126    
127    
128    
129    bool NullDomain::canTag(int functionSpaceCode) const
130    {
131      return true;
132    }
133    
134    int NullDomain::getNumberOfTagsInUse(int functionSpaceCode) const
135    {
136      return 1; // this is not arbitrary. It allows us to report that the default tag is in use
137    }
138    
139    int* NullDomain::borrowListOfTagsInUse(int functionSpaceCode) const
140    {
141      return defaultList;
142    }
143    
144    
145    
146  }  // end of namespace  }  // end of namespace

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

  ViewVC Help
Powered by ViewVC 1.1.26