18 |
#include "escript/Data/AbstractSystemMatrix.h" |
#include "escript/Data/AbstractSystemMatrix.h" |
19 |
#include "escript/Data/FunctionSpace.h" |
#include "escript/Data/FunctionSpace.h" |
20 |
|
|
21 |
|
using namespace std; |
22 |
namespace escript { |
namespace escript { |
23 |
|
|
24 |
AbstractDomain::AbstractDomain() { |
AbstractDomain::AbstractDomain() { |
29 |
|
|
30 |
void AbstractDomain::throwStandardException(const std::string& functionName) const |
void AbstractDomain::throwStandardException(const std::string& functionName) const |
31 |
{ |
{ |
32 |
throw DomainException("Error - Base class function: " + |
throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error."); |
|
functionName + " should not be called. Programming error."); |
|
33 |
} |
} |
34 |
|
|
35 |
bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const |
bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const |
68 |
return; |
return; |
69 |
} |
} |
70 |
|
|
71 |
|
void AbstractDomain::getReferenceNoList(int functionSpaceType, int** referenceNoList, int* numReferenceNo) const |
72 |
|
{ |
73 |
|
throwStandardException("AbstractDomain::getTagList"); |
74 |
|
return; |
75 |
|
} |
76 |
|
|
77 |
std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const |
std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const |
78 |
{ |
{ |
79 |
throwStandardException("AbstractDomain::getDataShape"); |
throwStandardException("AbstractDomain::getDataShape"); |
86 |
return 0; |
return 0; |
87 |
} |
} |
88 |
|
|
89 |
|
int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const |
90 |
|
{ |
91 |
|
throwStandardException("AbstractDomain::getReferenceNoFromSampleNo"); |
92 |
|
return 0; |
93 |
|
} |
94 |
|
|
95 |
void AbstractDomain::setNewX(const escript::Data& arg) |
void AbstractDomain::setNewX(const escript::Data& arg) |
96 |
{ |
{ |
97 |
throwStandardException("AbstractDomain::setNewX"); |
throwStandardException("AbstractDomain::setNewX"); |
120 |
throwStandardException("AbstractDomain::getNormal"); |
throwStandardException("AbstractDomain::getNormal"); |
121 |
return Data(); |
return Data(); |
122 |
} |
} |
123 |
|
|
124 |
escript::Data AbstractDomain::getSize() const |
escript::Data AbstractDomain::getSize() const |
125 |
{ |
{ |
126 |
throwStandardException("AbstractDomain::getSize"); |
throwStandardException("AbstractDomain::getSize"); |
127 |
return Data(); |
return Data(); |
128 |
} |
} |
129 |
|
|
130 |
void AbstractDomain::setToX(escript::Data& out) const |
void AbstractDomain::setToX(escript::Data& out) const |
131 |
{ |
{ |
132 |
throwStandardException("AbstractDomain::setToX"); |
throwStandardException("AbstractDomain::setToX"); |
138 |
throwStandardException("AbstractDomain::setToNormal"); |
throwStandardException("AbstractDomain::setToNormal"); |
139 |
return; |
return; |
140 |
} |
} |
141 |
|
|
142 |
void AbstractDomain::setToSize(escript::Data& out) const |
void AbstractDomain::setToSize(escript::Data& out) const |
143 |
{ |
{ |
144 |
throwStandardException("AbstractDomain::setToSize"); |
throwStandardException("AbstractDomain::setToSize"); |
157 |
return; |
return; |
158 |
} |
} |
159 |
|
|
160 |
|
void AbstractDomain::saveVTK(const std::string& filename,const escript::Data& arg) const |
161 |
|
{ |
162 |
|
throwStandardException("AbstractDomain::saveVTK"); |
163 |
|
return; |
164 |
|
} |
165 |
|
|
166 |
bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const |
bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const |
167 |
{ |
{ |
168 |
throwStandardException("AbstractDomain::probeInterpolationOnDomain"); |
throwStandardException("AbstractDomain::probeInterpolationOnDomain"); |
183 |
|
|
184 |
bool AbstractDomain::operator==(const AbstractDomain& other) const |
bool AbstractDomain::operator==(const AbstractDomain& other) const |
185 |
{ |
{ |
186 |
return (this==&other); |
throwStandardException("AbstractDomain::operator=="); |
187 |
|
return false; |
188 |
} |
} |
189 |
|
|
190 |
bool AbstractDomain::operator!=(const AbstractDomain& other) const |
bool AbstractDomain::operator!=(const AbstractDomain& other) const |
191 |
{ |
{ |
192 |
return (!operator==(other)); |
throwStandardException("AbstractDomain::operator!="); |
193 |
|
return false; |
194 |
} |
} |
195 |
|
|
196 |
} // end of namespace |
} // end of namespace |