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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26