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

Annotation of /branches/arrexp_2137_win_merge/escript/src/NullDomain.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1387 - (hide annotations)
Fri Jan 11 07:45:26 2008 UTC (11 years, 7 months ago) by trankine
Original Path: temp/escript/src/NullDomain.cpp
File size: 2357 byte(s)
Restore the trunk that existed before the windows changes were committed to the (now moved to branches) old trunk.
1 jgs 82
2 ksteube 1312 /* $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 jgs 474 #include "NullDomain.h"
17 jgs 82
18     namespace escript {
19    
20     NullDomain::NullDomain() {
21     }
22    
23     bool NullDomain::isValidFunctionSpaceType(int functionSpaceType) const
24     {
25     //
26     // allow anything
27     return true;
28     }
29 jgs 115
30 jgs 82 std::string NullDomain::getDescription() const
31     {
32     return "NullDomain";
33     }
34    
35     int NullDomain::getContinuousFunctionCode() const
36     {
37     //
38     // return an arbitary value
39     return 1;
40     }
41    
42     int NullDomain::getFunctionCode() const
43     {
44     //
45     // return an arbitary value
46     return 1;
47     }
48    
49     int NullDomain::getFunctionOnBoundaryCode() const
50     {
51     //
52     // return an arbitary value
53     return 1;
54     }
55    
56     int NullDomain::getFunctionOnContactZeroCode() const
57     {
58     //
59     // return an arbitary value
60     return 1;
61     }
62    
63     int NullDomain::getFunctionOnContactOneCode() const
64     {
65     //
66     // return an arbitary value
67     return 1;
68     }
69    
70     int NullDomain::getSolutionCode() const
71     {
72     //
73     // return an arbitary value
74     return 1;
75     }
76    
77     int NullDomain::getReducedSolutionCode() const
78     {
79     //
80     // return an arbitary value
81     return 1;
82     }
83    
84     int NullDomain::getDiracDeltaFunctionCode() const
85     {
86     //
87     // return an arbitary value
88     return 1;
89     }
90    
91     std::pair<int,int> NullDomain::getDataShape(int functionSpaceCode) const
92     {
93     //
94     // return an arbitary value
95     return std::pair<int,int>(1,1);
96     }
97    
98     int NullDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
99     {
100     //
101     // return an arbitary value
102     return 1;
103     }
104 jgs 110
105 gross 964 int referenceID=10;
106    
107     int* NullDomain::borrowSampleReferenceIDs(int functionSpaceType) const
108 jgs 110 {
109     //
110     // return an arbitary value
111 gross 964 return &(referenceID);
112 jgs 110 }
113    
114 jgs 82 int NullDomain::getDim() const
115     {
116     //
117     // return an arbitary value
118     return 1;
119     }
120    
121 jgs 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 jgs 82 } // end of namespace

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26