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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 121 - (hide annotations)
Fri May 6 04:26:16 2005 UTC (14 years, 6 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/AbstractDomain.cpp
File size: 5681 byte(s)
Merge of development branch back to main trunk on 2005-05-06

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 jgs 121 using namespace std;
22 jgs 82 namespace escript {
23    
24     AbstractDomain::AbstractDomain() {
25     }
26    
27     AbstractDomain::~AbstractDomain() {
28     }
29    
30     void AbstractDomain::throwStandardException(const std::string& functionName) const
31     {
32 jgs 115 throw DomainException("Error - Base class function: " + functionName + " should not be called. Programming error.");
33 jgs 82 }
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 jgs 115
124 jgs 102 escript::Data AbstractDomain::getSize() const
125     {
126     throwStandardException("AbstractDomain::getSize");
127     return Data();
128     }
129 jgs 115
130 jgs 82 void AbstractDomain::setToX(escript::Data& out) const
131     {
132     throwStandardException("AbstractDomain::setToX");
133     return;
134     }
135    
136     void AbstractDomain::setToNormal(escript::Data& out) const
137     {
138     throwStandardException("AbstractDomain::setToNormal");
139     return;
140     }
141 jgs 115
142 jgs 82 void AbstractDomain::setToSize(escript::Data& out) const
143     {
144     throwStandardException("AbstractDomain::setToSize");
145     return;
146     }
147    
148     void AbstractDomain::setToGradient(escript::Data& grad, const escript::Data& arg) const
149     {
150     throwStandardException("AbstractDomain::setToGradient");
151     return;
152     }
153    
154     void AbstractDomain::saveDX(const std::string& filename,const escript::Data& arg) const
155     {
156     throwStandardException("AbstractDomain::saveDX");
157     return;
158     }
159    
160 jgs 110 void AbstractDomain::saveVTK(const std::string& filename,const escript::Data& arg) const
161     {
162     throwStandardException("AbstractDomain::saveVTK");
163     return;
164     }
165    
166 jgs 82 bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
167     {
168     throwStandardException("AbstractDomain::probeInterpolationOnDomain");
169     return false;
170     }
171    
172     bool AbstractDomain::probeInterpolationACross(int functionSpaceType_source,const AbstractDomain& targetDomain, int functionSpaceType_target) const
173     {
174     throwStandardException("AbstractDomain::probeInterpolationACross");
175     return false;
176     }
177    
178     bool AbstractDomain::isCellOriented(int functionSpaceCode) const
179     {
180     throwStandardException("AbstractDomain::isCellOriented");
181     return false;
182     }
183    
184     bool AbstractDomain::operator==(const AbstractDomain& other) const
185     {
186 jgs 121 throwStandardException("AbstractDomain::operator==");
187     return false;
188 jgs 82 }
189    
190     bool AbstractDomain::operator!=(const AbstractDomain& other) const
191     {
192 jgs 121 throwStandardException("AbstractDomain::operator!=");
193     return false;
194 jgs 82 }
195    
196 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