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

Contents of /trunk/escript/src/NullDomain.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615 - (show annotations)
Wed Mar 22 02:12:00 2006 UTC (13 years, 6 months ago) by elspeth
File size: 2464 byte(s)
More copyright information.

1 /*
2 ************************************************************
3 * Copyright 2006 by ACcESS MNRF *
4 * *
5 * http://www.access.edu.au *
6 * Primary Business: Queensland, Australia *
7 * Licensed under the Open Software License version 3.0 *
8 * http://www.opensource.org/licenses/osl-3.0.php *
9 * *
10 ************************************************************
11 */
12
13 #include "NullDomain.h"
14
15 namespace escript {
16
17 NullDomain::NullDomain() {
18 }
19
20 bool NullDomain::isValidFunctionSpaceType(int functionSpaceType) const
21 {
22 //
23 // allow anything
24 return true;
25 }
26
27 std::string NullDomain::getDescription() const
28 {
29 return "NullDomain";
30 }
31
32 int NullDomain::getContinuousFunctionCode() const
33 {
34 //
35 // return an arbitary value
36 return 1;
37 }
38
39 int NullDomain::getFunctionCode() const
40 {
41 //
42 // return an arbitary value
43 return 1;
44 }
45
46 int NullDomain::getFunctionOnBoundaryCode() const
47 {
48 //
49 // return an arbitary value
50 return 1;
51 }
52
53 int NullDomain::getFunctionOnContactZeroCode() const
54 {
55 //
56 // return an arbitary value
57 return 1;
58 }
59
60 int NullDomain::getFunctionOnContactOneCode() const
61 {
62 //
63 // return an arbitary value
64 return 1;
65 }
66
67 int NullDomain::getSolutionCode() const
68 {
69 //
70 // return an arbitary value
71 return 1;
72 }
73
74 int NullDomain::getReducedSolutionCode() const
75 {
76 //
77 // return an arbitary value
78 return 1;
79 }
80
81 int NullDomain::getDiracDeltaFunctionCode() const
82 {
83 //
84 // return an arbitary value
85 return 1;
86 }
87
88 std::pair<int,int> NullDomain::getDataShape(int functionSpaceCode) const
89 {
90 //
91 // return an arbitary value
92 return std::pair<int,int>(1,1);
93 }
94
95 int NullDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
96 {
97 //
98 // return an arbitary value
99 return 1;
100 }
101
102 int NullDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
103 {
104 //
105 // return an arbitary value
106 return 1;
107 }
108
109 int NullDomain::getDim() const
110 {
111 //
112 // return an arbitary value
113 return 1;
114 }
115
116 bool NullDomain::operator==(const AbstractDomain& other) const
117 {
118 const NullDomain* temp=dynamic_cast<const NullDomain*>(&other);
119 if (temp!=0) {
120 return true;
121 } else {
122 return false;
123 }
124 }
125
126 bool NullDomain::operator!=(const AbstractDomain& other) const
127 {
128 return(!(*this==other));
129 }
130
131 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26