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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (hide annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 10 months ago) by trankine
File size: 5728 byte(s)
And get the *(&(*&(* name right
1 ksteube 1312
2 jgs 102 /* $Id$ */
3 jgs 82
4 ksteube 1312 /*******************************************************
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 "AbstractDomain.h"
17     #include "DomainException.h"
18 jgs 480 #include "Data.h"
19    
20 jgs 121 using namespace std;
21 jgs 149
22 jgs 82 namespace escript {
23    
24     AbstractDomain::AbstractDomain() {
25     }
26    
27     AbstractDomain::~AbstractDomain() {
28     }
29    
30 ksteube 1312 int AbstractDomain::getMPISize() const
31     {
32     return 1;
33     }
34     int AbstractDomain::getMPIRank() const
35     {
36     return 0;
37     }
38    
39    
40 jgs 82 void AbstractDomain::throwStandardException(const std::string& functionName) const
41     {
42 jgs 115 throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");
43 jgs 82 }
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 ksteube 1312 void AbstractDomain::dump(const std::string& filename) const
75     {
76     throwStandardException("AbstractDomain::dump");
77     return;
78     }
79 jgs 82
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 gross 964 int* AbstractDomain::borrowSampleReferenceIDs(int functionSpaceType) const
93 jgs 110 {
94 gross 964 throwStandardException("AbstractDomain::borrowSampleReferenceIDs");
95 jgs 110 return 0;
96     }
97    
98 jgs 82 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 jgs 102 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 jgs 115
127 jgs 102 escript::Data AbstractDomain::getSize() const
128     {
129     throwStandardException("AbstractDomain::getSize");
130     return Data();
131     }
132 jgs 115
133 jgs 82 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 jgs 115
145 jgs 82 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 gross 767 void AbstractDomain::setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const
158     {
159     throwStandardException("AbstractDomain::setTags");
160     return;
161     }
162    
163 jgs 153 void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
164 jgs 82 {
165     throwStandardException("AbstractDomain::saveDX");
166     return;
167     }
168    
169 jgs 153 void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
170 jgs 110 {
171     throwStandardException("AbstractDomain::saveVTK");
172     return;
173     }
174    
175 jgs 82 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 jgs 121 throwStandardException("AbstractDomain::operator==");
196     return false;
197 jgs 82 }
198     bool AbstractDomain::operator!=(const AbstractDomain& other) const
199     {
200 jgs 121 throwStandardException("AbstractDomain::operator!=");
201     return false;
202 jgs 82 }
203    
204 gross 797 AbstractDomain::StatusType AbstractDomain::getStatus() const
205     {
206     throwStandardException("AbstractDomain::getStatus");
207     return 0;
208     }
209 gross 1044 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 gross 797
219 gross 1044 bool AbstractDomain::isValidTagName(const std::string& name) const
220     {
221     return false;
222     }
223 gross 797
224 gross 1044 std::string AbstractDomain::showTagNames() const
225     {
226     throwStandardException("AbstractDomain::showTagNames is not implemented.");
227     return string();
228     }
229    
230    
231    
232 jgs 115 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26