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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1044 - (hide annotations)
Mon Mar 19 07:29:31 2007 UTC (12 years, 7 months ago) by gross
File size: 5625 byte(s)
clear name tagging is supported now.
1 jgs 102 /* $Id$ */
2 jgs 82 /*
3 elspeth 615 ************************************************************
4     * Copyright 2006 by ACcESS MNRF *
5     * *
6     * http://www.access.edu.au *
7     * Primary Business: Queensland, Australia *
8     * Licensed under the Open Software License version 3.0 *
9     * http://www.opensource.org/licenses/osl-3.0.php *
10     * *
11     ************************************************************
12 jgs 82 */
13    
14 jgs 474 #include "AbstractDomain.h"
15     #include "DomainException.h"
16 jgs 480 #include "Data.h"
17    
18 jgs 121 using namespace std;
19 jgs 149
20 jgs 82 namespace escript {
21    
22     AbstractDomain::AbstractDomain() {
23     }
24    
25     AbstractDomain::~AbstractDomain() {
26     }
27    
28     void AbstractDomain::throwStandardException(const std::string& functionName) const
29     {
30 jgs 115 throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");
31 jgs 82 }
32    
33     bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
34     {
35     throwStandardException("AbstractDomain::isValidFunctionSpaceType");
36     return false;
37     }
38    
39     std::string AbstractDomain::getDescription() const
40     {
41     throwStandardException("AbstractDomain::getDescription");
42     return "";
43     }
44    
45     std::string AbstractDomain::functionSpaceTypeAsString(int functionSpaceType) const
46     {
47     throwStandardException("AbstractDomain::functionSpaceTypeAsString");
48     return "";
49     }
50    
51     int AbstractDomain::getDim() const
52     {
53     throwStandardException("AbstractDomain::getDim");
54     return 0;
55     }
56    
57     void AbstractDomain::write(const std::string& filename) const
58     {
59     throwStandardException("AbstractDomain::write");
60     return;
61     }
62    
63     std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
64     {
65     throwStandardException("AbstractDomain::getDataShape");
66     return std::pair<int,int>(0,0);
67     }
68    
69     int AbstractDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
70     {
71     throwStandardException("AbstractDomain::getTagFromSampleNo");
72     return 0;
73     }
74    
75 gross 964 int* AbstractDomain::borrowSampleReferenceIDs(int functionSpaceType) const
76 jgs 110 {
77 gross 964 throwStandardException("AbstractDomain::borrowSampleReferenceIDs");
78 jgs 110 return 0;
79     }
80    
81 jgs 82 void AbstractDomain::setNewX(const escript::Data& arg)
82     {
83     throwStandardException("AbstractDomain::setNewX");
84     return;
85     }
86    
87     void AbstractDomain::interpolateOnDomain(escript::Data& target,const escript::Data& source) const
88     {
89     throwStandardException("AbstractDomain::interpolateOnDomain");
90     return;
91     }
92     void AbstractDomain::interpolateACross(escript::Data& target, const escript::Data& source) const
93     {
94     throwStandardException("AbstractDomain::interpolateACross");
95     return;
96     }
97    
98 jgs 102 escript::Data AbstractDomain::getX() const
99     {
100     throwStandardException("AbstractDomain::getX");
101     return Data();
102     }
103    
104     escript::Data AbstractDomain::getNormal() const
105     {
106     throwStandardException("AbstractDomain::getNormal");
107     return Data();
108     }
109 jgs 115
110 jgs 102 escript::Data AbstractDomain::getSize() const
111     {
112     throwStandardException("AbstractDomain::getSize");
113     return Data();
114     }
115 jgs 115
116 jgs 82 void AbstractDomain::setToX(escript::Data& out) const
117     {
118     throwStandardException("AbstractDomain::setToX");
119     return;
120     }
121    
122     void AbstractDomain::setToNormal(escript::Data& out) const
123     {
124     throwStandardException("AbstractDomain::setToNormal");
125     return;
126     }
127 jgs 115
128 jgs 82 void AbstractDomain::setToSize(escript::Data& out) const
129     {
130     throwStandardException("AbstractDomain::setToSize");
131     return;
132     }
133    
134     void AbstractDomain::setToGradient(escript::Data& grad, const escript::Data& arg) const
135     {
136     throwStandardException("AbstractDomain::setToGradient");
137     return;
138     }
139    
140 gross 767 void AbstractDomain::setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const
141     {
142     throwStandardException("AbstractDomain::setTags");
143     return;
144     }
145    
146 jgs 153 void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
147 jgs 82 {
148     throwStandardException("AbstractDomain::saveDX");
149     return;
150     }
151    
152 jgs 153 void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
153 jgs 110 {
154     throwStandardException("AbstractDomain::saveVTK");
155     return;
156     }
157    
158 jgs 82 bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
159     {
160     throwStandardException("AbstractDomain::probeInterpolationOnDomain");
161     return false;
162     }
163    
164     bool AbstractDomain::probeInterpolationACross(int functionSpaceType_source,const AbstractDomain& targetDomain, int functionSpaceType_target) const
165     {
166     throwStandardException("AbstractDomain::probeInterpolationACross");
167     return false;
168     }
169    
170     bool AbstractDomain::isCellOriented(int functionSpaceCode) const
171     {
172     throwStandardException("AbstractDomain::isCellOriented");
173     return false;
174     }
175    
176     bool AbstractDomain::operator==(const AbstractDomain& other) const
177     {
178 jgs 121 throwStandardException("AbstractDomain::operator==");
179     return false;
180 jgs 82 }
181     bool AbstractDomain::operator!=(const AbstractDomain& other) const
182     {
183 jgs 121 throwStandardException("AbstractDomain::operator!=");
184     return false;
185 jgs 82 }
186    
187 gross 797 AbstractDomain::StatusType AbstractDomain::getStatus() const
188     {
189     throwStandardException("AbstractDomain::getStatus");
190     return 0;
191     }
192 gross 1044 void AbstractDomain::setTagMap(const std::string& name, int tag)
193     {
194     throwStandardException("AbstractDomain::set TagMap is not implemented.");
195     }
196     int AbstractDomain::getTag(const std::string& name) const
197     {
198     throwStandardException("AbstractDomain::getTag is not implemented.");
199     return 0;
200     }
201 gross 797
202 gross 1044 bool AbstractDomain::isValidTagName(const std::string& name) const
203     {
204     return false;
205     }
206 gross 797
207 gross 1044 std::string AbstractDomain::showTagNames() const
208     {
209     throwStandardException("AbstractDomain::showTagNames is not implemented.");
210     return string();
211     }
212    
213    
214    
215 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