/[escript]/trunk/escript/src/TestDomain.cpp
ViewVC logotype

Diff of /trunk/escript/src/TestDomain.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2486 by jfenwick, Mon Jun 22 03:33:43 2009 UTC revision 2487 by jfenwick, Tue Jun 23 04:26:07 2009 UTC
# Line 19  Line 19 
19  namespace escript {  namespace escript {
20    
21  namespace {  namespace {
22  int defaultList[1]={0};     // an array to return in borrowListOfTagsInUse();  const int defaultList[1]={0};       // an array to return in borrowListOfTagsInUse();
23  int TestDomainFS=1;     // Null domains only support 1 functionspace type.  const int TestDomainFS=1;       // Null domains only support 1 functionspace type.
24              // The choice of =1 as the value is arbitrary              // The choice of =1 as the value is arbitrary
25  }  }
26    
# Line 142  int TestDomain::getTagFromSampleNo(int f Line 142  int TestDomain::getTagFromSampleNo(int f
142    return 0;    return 0;
143  }  }
144    
145  int* TestDomain::borrowSampleReferenceIDs(int functionSpaceType) const  const int* TestDomain::borrowSampleReferenceIDs(int functionSpaceType) const
146  {  {
147    //    //
148    // return an arbitary value    // return an arbitary value
# Line 184  int TestDomain::getNumberOfTagsInUse(int Line 184  int TestDomain::getNumberOfTagsInUse(int
184    return 1; // this is not arbitrary. It allows us to report that the default tag is in use    return 1; // this is not arbitrary. It allows us to report that the default tag is in use
185  }  }
186    
187  int* TestDomain::borrowListOfTagsInUse(int functionSpaceCode) const  const int* TestDomain::borrowListOfTagsInUse(int functionSpaceCode) const
188  {  {
189    return defaultList;    return defaultList;
190  }  }

Legend:
Removed from v.2486  
changed lines
  Added in v.2487

  ViewVC Help
Powered by ViewVC 1.1.26