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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (show annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 9 months ago) by trankine
File size: 5728 byte(s)
And get the *(&(*&(* name right
1
2 /* $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 "AbstractDomain.h"
17 #include "DomainException.h"
18 #include "Data.h"
19
20 using namespace std;
21
22 namespace escript {
23
24 AbstractDomain::AbstractDomain() {
25 }
26
27 AbstractDomain::~AbstractDomain() {
28 }
29
30 int AbstractDomain::getMPISize() const
31 {
32 return 1;
33 }
34 int AbstractDomain::getMPIRank() const
35 {
36 return 0;
37 }
38
39
40 void AbstractDomain::throwStandardException(const std::string& functionName) const
41 {
42 throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");
43 }
44
45 bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
46 {
47 throwStandardException("AbstractDomain::isValidFunctionSpaceType");
48 return false;
49 }
50
51 std::string AbstractDomain::getDescription() const
52 {
53 throwStandardException("AbstractDomain::getDescription");
54 return "";
55 }
56
57 std::string AbstractDomain::functionSpaceTypeAsString(int functionSpaceType) const
58 {
59 throwStandardException("AbstractDomain::functionSpaceTypeAsString");
60 return "";
61 }
62
63 int AbstractDomain::getDim() const
64 {
65 throwStandardException("AbstractDomain::getDim");
66 return 0;
67 }
68
69 void AbstractDomain::write(const std::string& filename) const
70 {
71 throwStandardException("AbstractDomain::write");
72 return;
73 }
74 void AbstractDomain::dump(const std::string& filename) const
75 {
76 throwStandardException("AbstractDomain::dump");
77 return;
78 }
79
80 std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
81 {
82 throwStandardException("AbstractDomain::getDataShape");
83 return std::pair<int,int>(0,0);
84 }
85
86 int AbstractDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
87 {
88 throwStandardException("AbstractDomain::getTagFromSampleNo");
89 return 0;
90 }
91
92 int* AbstractDomain::borrowSampleReferenceIDs(int functionSpaceType) const
93 {
94 throwStandardException("AbstractDomain::borrowSampleReferenceIDs");
95 return 0;
96 }
97
98 void AbstractDomain::setNewX(const escript::Data& arg)
99 {
100 throwStandardException("AbstractDomain::setNewX");
101 return;
102 }
103
104 void AbstractDomain::interpolateOnDomain(escript::Data& target,const escript::Data& source) const
105 {
106 throwStandardException("AbstractDomain::interpolateOnDomain");
107 return;
108 }
109 void AbstractDomain::interpolateACross(escript::Data& target, const escript::Data& source) const
110 {
111 throwStandardException("AbstractDomain::interpolateACross");
112 return;
113 }
114
115 escript::Data AbstractDomain::getX() const
116 {
117 throwStandardException("AbstractDomain::getX");
118 return Data();
119 }
120
121 escript::Data AbstractDomain::getNormal() const
122 {
123 throwStandardException("AbstractDomain::getNormal");
124 return Data();
125 }
126
127 escript::Data AbstractDomain::getSize() const
128 {
129 throwStandardException("AbstractDomain::getSize");
130 return Data();
131 }
132
133 void AbstractDomain::setToX(escript::Data& out) const
134 {
135 throwStandardException("AbstractDomain::setToX");
136 return;
137 }
138
139 void AbstractDomain::setToNormal(escript::Data& out) const
140 {
141 throwStandardException("AbstractDomain::setToNormal");
142 return;
143 }
144
145 void AbstractDomain::setToSize(escript::Data& out) const
146 {
147 throwStandardException("AbstractDomain::setToSize");
148 return;
149 }
150
151 void AbstractDomain::setToGradient(escript::Data& grad, const escript::Data& arg) const
152 {
153 throwStandardException("AbstractDomain::setToGradient");
154 return;
155 }
156
157 void AbstractDomain::setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const
158 {
159 throwStandardException("AbstractDomain::setTags");
160 return;
161 }
162
163 void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
164 {
165 throwStandardException("AbstractDomain::saveDX");
166 return;
167 }
168
169 void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
170 {
171 throwStandardException("AbstractDomain::saveVTK");
172 return;
173 }
174
175 bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
176 {
177 throwStandardException("AbstractDomain::probeInterpolationOnDomain");
178 return false;
179 }
180
181 bool AbstractDomain::probeInterpolationACross(int functionSpaceType_source,const AbstractDomain& targetDomain, int functionSpaceType_target) const
182 {
183 throwStandardException("AbstractDomain::probeInterpolationACross");
184 return false;
185 }
186
187 bool AbstractDomain::isCellOriented(int functionSpaceCode) const
188 {
189 throwStandardException("AbstractDomain::isCellOriented");
190 return false;
191 }
192
193 bool AbstractDomain::operator==(const AbstractDomain& other) const
194 {
195 throwStandardException("AbstractDomain::operator==");
196 return false;
197 }
198 bool AbstractDomain::operator!=(const AbstractDomain& other) const
199 {
200 throwStandardException("AbstractDomain::operator!=");
201 return false;
202 }
203
204 AbstractDomain::StatusType AbstractDomain::getStatus() const
205 {
206 throwStandardException("AbstractDomain::getStatus");
207 return 0;
208 }
209 void AbstractDomain::setTagMap(const std::string& name, int tag)
210 {
211 throwStandardException("AbstractDomain::set TagMap is not implemented.");
212 }
213 int AbstractDomain::getTag(const std::string& name) const
214 {
215 throwStandardException("AbstractDomain::getTag is not implemented.");
216 return 0;
217 }
218
219 bool AbstractDomain::isValidTagName(const std::string& name) const
220 {
221 return false;
222 }
223
224 std::string AbstractDomain::showTagNames() const
225 {
226 throwStandardException("AbstractDomain::showTagNames is not implemented.");
227 return string();
228 }
229
230
231
232 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26