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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 480 - (hide annotations)
Wed Feb 1 05:15:12 2006 UTC (13 years, 7 months ago) by jgs
File size: 5531 byte(s)
rationalise #includes and forward declarations

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