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

trunk/esys2/escript/src/Data/NullDomain.cpp revision 115 by jgs, Fri Mar 4 07:12:47 2005 UTC trunk/escript/src/NullDomain.cpp revision 964 by gross, Tue Feb 13 05:10:26 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   ******************************************************************************   ************************************************************
3   *                                                                            *   *          Copyright 2006 by ACcESS MNRF                   *
4   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *                                                          *
5   *                                                                            *   *              http://www.access.edu.au                    *
6   * This software is the property of ACcESS. No part of this code              *   *       Primary Business: Queensland, Australia            *
7   * may be copied in any form or by any means without the expressed written    *   *  Licensed under the Open Software License version 3.0    *
8   * consent of ACcESS.  Copying, use or modification of this software          *   *     http://www.opensource.org/licenses/osl-3.0.php       *
9   * by any unauthorised person is illegal unless that person has a software    *   *                                                          *
10   * license agreement with ACcESS.                                             *   ************************************************************
  *                                                                            *  
  ******************************************************************************  
11  */  */
12    
13  #include "escript/Data/NullDomain.h"  #include "NullDomain.h"
14    
15  namespace escript {  namespace escript {
16    
# Line 101  int NullDomain::getTagFromSampleNo(int f Line 99  int NullDomain::getTagFromSampleNo(int f
99    return 1;    return 1;
100  }  }
101    
102  int NullDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const  int referenceID=10;
103    
104    int* NullDomain::borrowSampleReferenceIDs(int functionSpaceType) const
105  {  {
106    //    //
107    // return an arbitary value    // return an arbitary value
108    return 1;    return &(referenceID);
109  }  }
110    
111  int NullDomain::getDim() const  int NullDomain::getDim() const
# Line 115  int NullDomain::getDim() const Line 115  int NullDomain::getDim() const
115    return 1;    return 1;
116  }  }
117    
118    bool NullDomain::operator==(const AbstractDomain& other) const
119    {
120      const NullDomain* temp=dynamic_cast<const NullDomain*>(&other);
121      if (temp!=0) {
122        return true;
123      } else {
124        return false;
125      }
126    }
127    
128    bool NullDomain::operator!=(const AbstractDomain& other) const
129    {
130      return(!(*this==other));
131    }
132    
133  }  // end of namespace  }  // end of namespace

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

  ViewVC Help
Powered by ViewVC 1.1.26