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

Contents of /trunk/escript/src/AbstractDomain.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: 4864 byte(s)
More copyright information.

1 /* $Id$ */
2 /*
3 ************************************************************
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 */
13
14 #include "AbstractDomain.h"
15 #include "DomainException.h"
16 //#include "AbstractSystemMatrix.h"
17 //#include "FunctionSpace.h"
18
19 #include "Data.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 std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
67 {
68 throwStandardException("AbstractDomain::getDataShape");
69 return std::pair<int,int>(0,0);
70 }
71
72 int AbstractDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
73 {
74 throwStandardException("AbstractDomain::getTagFromSampleNo");
75 return 0;
76 }
77
78 int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
79 {
80 throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
81 return 0;
82 }
83
84 void AbstractDomain::setNewX(const escript::Data& arg)
85 {
86 throwStandardException("AbstractDomain::setNewX");
87 return;
88 }
89
90 void AbstractDomain::interpolateOnDomain(escript::Data& target,const escript::Data& source) const
91 {
92 throwStandardException("AbstractDomain::interpolateOnDomain");
93 return;
94 }
95 void AbstractDomain::interpolateACross(escript::Data& target, const escript::Data& source) const
96 {
97 throwStandardException("AbstractDomain::interpolateACross");
98 return;
99 }
100
101 escript::Data AbstractDomain::getX() const
102 {
103 throwStandardException("AbstractDomain::getX");
104 return Data();
105 }
106
107 escript::Data AbstractDomain::getNormal() const
108 {
109 throwStandardException("AbstractDomain::getNormal");
110 return Data();
111 }
112
113 escript::Data AbstractDomain::getSize() const
114 {
115 throwStandardException("AbstractDomain::getSize");
116 return Data();
117 }
118
119 void AbstractDomain::setToX(escript::Data& out) const
120 {
121 throwStandardException("AbstractDomain::setToX");
122 return;
123 }
124
125 void AbstractDomain::setToNormal(escript::Data& out) const
126 {
127 throwStandardException("AbstractDomain::setToNormal");
128 return;
129 }
130
131 void AbstractDomain::setToSize(escript::Data& out) const
132 {
133 throwStandardException("AbstractDomain::setToSize");
134 return;
135 }
136
137 void AbstractDomain::setToGradient(escript::Data& grad, const escript::Data& arg) const
138 {
139 throwStandardException("AbstractDomain::setToGradient");
140 return;
141 }
142
143 void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
144 {
145 throwStandardException("AbstractDomain::saveDX");
146 return;
147 }
148
149 void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
150 {
151 throwStandardException("AbstractDomain::saveVTK");
152 return;
153 }
154
155 bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
156 {
157 throwStandardException("AbstractDomain::probeInterpolationOnDomain");
158 return false;
159 }
160
161 bool AbstractDomain::probeInterpolationACross(int functionSpaceType_source,const AbstractDomain& targetDomain, int functionSpaceType_target) const
162 {
163 throwStandardException("AbstractDomain::probeInterpolationACross");
164 return false;
165 }
166
167 bool AbstractDomain::isCellOriented(int functionSpaceCode) const
168 {
169 throwStandardException("AbstractDomain::isCellOriented");
170 return false;
171 }
172
173 bool AbstractDomain::operator==(const AbstractDomain& other) const
174 {
175 throwStandardException("AbstractDomain::operator==");
176 return false;
177 }
178 bool AbstractDomain::operator!=(const AbstractDomain& other) const
179 {
180 throwStandardException("AbstractDomain::operator!=");
181 return false;
182 }
183
184 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26