/[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 temp/escript/src/NullDomain.cpp revision 1387 by trankine, Fri Jan 11 07:45:26 2008 UTC
# Line 1  Line 1 
 /*  
  ******************************************************************************  
  *                                                                            *  
  *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *  
  *                                                                            *  
  * This software is the property of ACcESS. No part of this code              *  
  * may be copied in any form or by any means without the expressed written    *  
  * consent of ACcESS.  Copying, use or modification of this software          *  
  * by any unauthorised person is illegal unless that person has a software    *  
  * license agreement with ACcESS.                                             *  
  *                                                                            *  
  ******************************************************************************  
 */  
1    
2  #include "escript/Data/NullDomain.h"  /* $Id$ */
3    
4    /*******************************************************
5     *
6     *           Copyright 2003-2007 by ACceSS MNRF
7     *       Copyright 2007 by University of Queensland
8     *
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"
17    
18  namespace escript {  namespace escript {
19    
# Line 101  int NullDomain::getTagFromSampleNo(int f Line 102  int NullDomain::getTagFromSampleNo(int f
102    return 1;    return 1;
103  }  }
104    
105  int NullDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const  int referenceID=10;
106    
107    int* NullDomain::borrowSampleReferenceIDs(int functionSpaceType) const
108  {  {
109    //    //
110    // return an arbitary value    // return an arbitary value
111    return 1;    return &(referenceID);
112  }  }
113    
114  int NullDomain::getDim() const  int NullDomain::getDim() const
# Line 115  int NullDomain::getDim() const Line 118  int NullDomain::getDim() const
118    return 1;    return 1;
119  }  }
120    
121    bool NullDomain::operator==(const AbstractDomain& other) const
122    {
123      const NullDomain* temp=dynamic_cast<const NullDomain*>(&other);
124      if (temp!=0) {
125        return true;
126      } else {
127        return false;
128      }
129    }
130    
131    bool NullDomain::operator!=(const AbstractDomain& other) const
132    {
133      return(!(*this==other));
134    }
135    
136  }  // end of namespace  }  // end of namespace

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

  ViewVC Help
Powered by ViewVC 1.1.26