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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100 - (show annotations)
Wed Dec 15 03:48:48 2004 UTC (14 years, 11 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/AbstractDomain.cpp
File size: 4684 byte(s)
*** empty log message ***

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26