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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615 - (hide annotations)
Wed Mar 22 02:12:00 2006 UTC (13 years, 11 months ago) by elspeth
File size: 4864 byte(s)
More copyright information.

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