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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 115 - (hide annotations)
Fri Mar 4 07:12:47 2005 UTC (14 years, 6 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/AbstractDomain.cpp
File size: 5572 byte(s)
*** empty log message ***

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     #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     namespace escript {
22    
23     AbstractDomain::AbstractDomain() {
24     }
25    
26     AbstractDomain::~AbstractDomain() {
27     }
28    
29     void AbstractDomain::throwStandardException(const std::string& functionName) const
30     {
31 jgs 115 throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");
32 jgs 82 }
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 jgs 110 void AbstractDomain::getReferenceNoList(int functionSpaceType, int** referenceNoList, int* numReferenceNo) const
71     {
72     throwStandardException("AbstractDomain::getTagList");
73     return;
74     }
75    
76 jgs 82 std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
77     {
78     throwStandardException("AbstractDomain::getDataShape");
79     return std::pair<int,int>(0,0);
80     }
81    
82     int AbstractDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
83     {
84     throwStandardException("AbstractDomain::getTagFromSampleNo");
85     return 0;
86     }
87    
88 jgs 110 int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
89     {
90     throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
91     return 0;
92     }
93    
94 jgs 82 void AbstractDomain::setNewX(const escript::Data& arg)
95     {
96     throwStandardException("AbstractDomain::setNewX");
97     return;
98     }
99    
100     void AbstractDomain::interpolateOnDomain(escript::Data& target,const escript::Data& source) const
101     {
102     throwStandardException("AbstractDomain::interpolateOnDomain");
103     return;
104     }
105     void AbstractDomain::interpolateACross(escript::Data& target, const escript::Data& source) const
106     {
107     throwStandardException("AbstractDomain::interpolateACross");
108     return;
109     }
110    
111 jgs 102 escript::Data AbstractDomain::getX() const
112     {
113     throwStandardException("AbstractDomain::getX");
114     return Data();
115     }
116    
117     escript::Data AbstractDomain::getNormal() const
118     {
119     throwStandardException("AbstractDomain::getNormal");
120     return Data();
121     }
122 jgs 115
123 jgs 102 escript::Data AbstractDomain::getSize() const
124     {
125     throwStandardException("AbstractDomain::getSize");
126     return Data();
127     }
128 jgs 115
129 jgs 82 void AbstractDomain::setToX(escript::Data& out) const
130     {
131     throwStandardException("AbstractDomain::setToX");
132     return;
133     }
134    
135     void AbstractDomain::setToNormal(escript::Data& out) const
136     {
137     throwStandardException("AbstractDomain::setToNormal");
138     return;
139     }
140 jgs 115
141 jgs 82 void AbstractDomain::setToSize(escript::Data& out) const
142     {
143     throwStandardException("AbstractDomain::setToSize");
144     return;
145     }
146    
147     void AbstractDomain::setToGradient(escript::Data& grad, const escript::Data& arg) const
148     {
149     throwStandardException("AbstractDomain::setToGradient");
150     return;
151     }
152    
153     void AbstractDomain::saveDX(const std::string& filename,const escript::Data& arg) const
154     {
155     throwStandardException("AbstractDomain::saveDX");
156     return;
157     }
158    
159 jgs 110 void AbstractDomain::saveVTK(const std::string& filename,const escript::Data& arg) const
160     {
161     throwStandardException("AbstractDomain::saveVTK");
162     return;
163     }
164    
165 jgs 82 bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
166     {
167     throwStandardException("AbstractDomain::probeInterpolationOnDomain");
168     return false;
169     }
170    
171     bool AbstractDomain::probeInterpolationACross(int functionSpaceType_source,const AbstractDomain& targetDomain, int functionSpaceType_target) const
172     {
173     throwStandardException("AbstractDomain::probeInterpolationACross");
174     return false;
175     }
176    
177     bool AbstractDomain::isCellOriented(int functionSpaceCode) const
178     {
179     throwStandardException("AbstractDomain::isCellOriented");
180     return false;
181     }
182    
183     bool AbstractDomain::operator==(const AbstractDomain& other) const
184     {
185     return (this==&other);
186     }
187    
188     bool AbstractDomain::operator!=(const AbstractDomain& other) const
189     {
190     return (!operator==(other));
191     }
192    
193 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