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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations)
Tue Oct 25 01:51:20 2005 UTC (13 years, 11 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/AbstractDomain.cpp
File size: 5560 byte(s)
Merge of development branch dev-02 back to main trunk on 2005-10-25

1 /* $Id$ */
2 /*
3 ******************************************************************************
4 * *
5 * COPYRIGHT ACcESS 2004 - All Rights Reserved *
6 * *
7 * This software is the property of ACcESS. No part of this code *
8 * may be copied in any form or by any means without the expressed written *
9 * consent of ACcESS. Copying, use or modification of this software *
10 * by any unauthorised person is illegal unless that person has a software *
11 * license agreement with ACcESS. *
12 * *
13 ******************************************************************************
14 */
15
16 #include "escript/Data/AbstractDomain.h"
17 #include "escript/Data/DomainException.h"
18 #include "escript/Data/AbstractSystemMatrix.h"
19 #include "escript/Data/FunctionSpace.h"
20
21 using namespace std;
22
23 namespace escript {
24
25 AbstractDomain::AbstractDomain() {
26 }
27
28 AbstractDomain::~AbstractDomain() {
29 }
30
31 void AbstractDomain::throwStandardException(const std::string& functionName) const
32 {
33 throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");
34 }
35
36 bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
37 {
38 throwStandardException("AbstractDomain::isValidFunctionSpaceType");
39 return false;
40 }
41
42 std::string AbstractDomain::getDescription() const
43 {
44 throwStandardException("AbstractDomain::getDescription");
45 return "";
46 }
47
48 std::string AbstractDomain::functionSpaceTypeAsString(int functionSpaceType) const
49 {
50 throwStandardException("AbstractDomain::functionSpaceTypeAsString");
51 return "";
52 }
53
54 int AbstractDomain::getDim() const
55 {
56 throwStandardException("AbstractDomain::getDim");
57 return 0;
58 }
59
60 void AbstractDomain::write(const std::string& filename) const
61 {
62 throwStandardException("AbstractDomain::write");
63 return;
64 }
65
66 void AbstractDomain::getTagList(int functionSpaceType, int** tagList, int* numTags) const
67 {
68 throwStandardException("AbstractDomain::getTagList");
69 return;
70 }
71
72 void AbstractDomain::getReferenceNoList(int functionSpaceType, int** referenceNoList, int* numReferenceNo) const
73 {
74 throwStandardException("AbstractDomain::getTagList");
75 return;
76 }
77
78 std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
79 {
80 throwStandardException("AbstractDomain::getDataShape");
81 return std::pair<int,int>(0,0);
82 }
83
84 int AbstractDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
85 {
86 throwStandardException("AbstractDomain::getTagFromSampleNo");
87 return 0;
88 }
89
90 int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
91 {
92 throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
93 return 0;
94 }
95
96 void AbstractDomain::setNewX(const escript::Data& arg)
97 {
98 throwStandardException("AbstractDomain::setNewX");
99 return;
100 }
101
102 void AbstractDomain::interpolateOnDomain(escript::Data& target,const escript::Data& source) const
103 {
104 throwStandardException("AbstractDomain::interpolateOnDomain");
105 return;
106 }
107 void AbstractDomain::interpolateACross(escript::Data& target, const escript::Data& source) const
108 {
109 throwStandardException("AbstractDomain::interpolateACross");
110 return;
111 }
112
113 escript::Data AbstractDomain::getX() const
114 {
115 throwStandardException("AbstractDomain::getX");
116 return Data();
117 }
118
119 escript::Data AbstractDomain::getNormal() const
120 {
121 throwStandardException("AbstractDomain::getNormal");
122 return Data();
123 }
124
125 escript::Data AbstractDomain::getSize() const
126 {
127 throwStandardException("AbstractDomain::getSize");
128 return Data();
129 }
130
131 void AbstractDomain::setToX(escript::Data& out) const
132 {
133 throwStandardException("AbstractDomain::setToX");
134 return;
135 }
136
137 void AbstractDomain::setToNormal(escript::Data& out) const
138 {
139 throwStandardException("AbstractDomain::setToNormal");
140 return;
141 }
142
143 void AbstractDomain::setToSize(escript::Data& out) const
144 {
145 throwStandardException("AbstractDomain::setToSize");
146 return;
147 }
148
149 void AbstractDomain::setToGradient(escript::Data& grad, const escript::Data& arg) const
150 {
151 throwStandardException("AbstractDomain::setToGradient");
152 return;
153 }
154
155 void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
156 {
157 throwStandardException("AbstractDomain::saveDX");
158 return;
159 }
160
161 void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
162 {
163 throwStandardException("AbstractDomain::saveVTK");
164 return;
165 }
166
167 bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
168 {
169 throwStandardException("AbstractDomain::probeInterpolationOnDomain");
170 return false;
171 }
172
173 bool AbstractDomain::probeInterpolationACross(int functionSpaceType_source,const AbstractDomain& targetDomain, int functionSpaceType_target) const
174 {
175 throwStandardException("AbstractDomain::probeInterpolationACross");
176 return false;
177 }
178
179 bool AbstractDomain::isCellOriented(int functionSpaceCode) const
180 {
181 throwStandardException("AbstractDomain::isCellOriented");
182 return false;
183 }
184
185 bool AbstractDomain::operator==(const AbstractDomain& other) const
186 {
187 throwStandardException("AbstractDomain::operator==");
188 return false;
189 }
190 bool AbstractDomain::operator!=(const AbstractDomain& other) const
191 {
192 throwStandardException("AbstractDomain::operator!=");
193 return false;
194 }
195
196 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26