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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 547 - (hide annotations)
Tue Feb 21 06:10:54 2006 UTC (13 years, 9 months ago) by gross
File size: 5186 byte(s)
solution and reduced solution can have reference numbers now!
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     std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
69     {
70     throwStandardException("AbstractDomain::getDataShape");
71     return std::pair<int,int>(0,0);
72     }
73    
74     int AbstractDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
75     {
76     throwStandardException("AbstractDomain::getTagFromSampleNo");
77     return 0;
78     }
79    
80 jgs 110 int AbstractDomain::getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const
81     {
82     throwStandardException("AbstractDomain::getReferenceNoFromSampleNo");
83     return 0;
84     }
85    
86 jgs 82 void AbstractDomain::setNewX(const escript::Data& arg)
87     {
88     throwStandardException("AbstractDomain::setNewX");
89     return;
90     }
91    
92     void AbstractDomain::interpolateOnDomain(escript::Data& target,const escript::Data& source) const
93     {
94     throwStandardException("AbstractDomain::interpolateOnDomain");
95     return;
96     }
97     void AbstractDomain::interpolateACross(escript::Data& target, const escript::Data& source) const
98     {
99     throwStandardException("AbstractDomain::interpolateACross");
100     return;
101     }
102    
103 jgs 102 escript::Data AbstractDomain::getX() const
104     {
105     throwStandardException("AbstractDomain::getX");
106     return Data();
107     }
108    
109     escript::Data AbstractDomain::getNormal() const
110     {
111     throwStandardException("AbstractDomain::getNormal");
112     return Data();
113     }
114 jgs 115
115 jgs 102 escript::Data AbstractDomain::getSize() const
116     {
117     throwStandardException("AbstractDomain::getSize");
118     return Data();
119     }
120 jgs 115
121 jgs 82 void AbstractDomain::setToX(escript::Data& out) const
122     {
123     throwStandardException("AbstractDomain::setToX");
124     return;
125     }
126    
127     void AbstractDomain::setToNormal(escript::Data& out) const
128     {
129     throwStandardException("AbstractDomain::setToNormal");
130     return;
131     }
132 jgs 115
133 jgs 82 void AbstractDomain::setToSize(escript::Data& out) const
134     {
135     throwStandardException("AbstractDomain::setToSize");
136     return;
137     }
138    
139     void AbstractDomain::setToGradient(escript::Data& grad, const escript::Data& arg) const
140     {
141     throwStandardException("AbstractDomain::setToGradient");
142     return;
143     }
144    
145 jgs 153 void AbstractDomain::saveDX(const std::string& filename,const boost::python::dict& arg) const
146 jgs 82 {
147     throwStandardException("AbstractDomain::saveDX");
148     return;
149     }
150    
151 jgs 153 void AbstractDomain::saveVTK(const std::string& filename,const boost::python::dict& arg) const
152 jgs 110 {
153     throwStandardException("AbstractDomain::saveVTK");
154     return;
155     }
156    
157 jgs 82 bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
158     {
159     throwStandardException("AbstractDomain::probeInterpolationOnDomain");
160     return false;
161     }
162    
163     bool AbstractDomain::probeInterpolationACross(int functionSpaceType_source,const AbstractDomain& targetDomain, int functionSpaceType_target) const
164     {
165     throwStandardException("AbstractDomain::probeInterpolationACross");
166     return false;
167     }
168    
169     bool AbstractDomain::isCellOriented(int functionSpaceCode) const
170     {
171     throwStandardException("AbstractDomain::isCellOriented");
172     return false;
173     }
174    
175     bool AbstractDomain::operator==(const AbstractDomain& other) const
176     {
177 jgs 121 throwStandardException("AbstractDomain::operator==");
178     return false;
179 jgs 82 }
180     bool AbstractDomain::operator!=(const AbstractDomain& other) const
181     {
182 jgs 121 throwStandardException("AbstractDomain::operator!=");
183     return false;
184 jgs 82 }
185    
186 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