/[escript]/branches/domexper/escript/src/AbstractContinuousDomain.cpp
ViewVC logotype

Contents of /branches/domexper/escript/src/AbstractContinuousDomain.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3239 - (show annotations)
Tue Oct 5 05:31:20 2010 UTC (8 years, 10 months ago) by jfenwick
File size: 6733 byte(s)
Put the tsunami example back to use finley.
Moved a bunch of method signatures up into the AbstractDomain class

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 #include "AbstractContinuousDomain.h"
16 #include "Data.h"
17
18 using namespace boost::python;
19
20 namespace escript {
21
22 AbstractContinuousDomain::AbstractContinuousDomain()
23 {
24 }
25
26 AbstractContinuousDomain::~AbstractContinuousDomain()
27 {
28 }
29
30 bool AbstractContinuousDomain::isValidFunctionSpaceType(int functionSpaceType) const
31 {
32 throwStandardException("AbstractContinuousDomain::isValidFunctionSpaceType");
33 return false;
34 }
35
36 std::string AbstractContinuousDomain::getDescription() const
37 {
38 throwStandardException("AbstractContinuousDomain::getDescription");
39 return "";
40 }
41
42 int AbstractContinuousDomain::getContinuousFunctionCode() const
43 {
44 throwStandardException("AbstractContinuousDomain::getContinuousFunctionCode");
45 return 0;
46 }
47
48 int AbstractContinuousDomain::getReducedContinuousFunctionCode() const
49 {
50 throwStandardException("AbstractContinuousDomain::getReducedContinuousFunctionCode");
51 return 0;
52 }
53
54 int AbstractContinuousDomain::getFunctionCode() const
55 {
56 throwStandardException("AbstractContinuousDomain::getFunctionCode");
57 return 0;
58 }
59
60 int AbstractContinuousDomain::getReducedFunctionCode() const
61 {
62 throwStandardException("AbstractContinuousDomain::getReducedFunctionCode");
63 return 0;
64 }
65
66 int AbstractContinuousDomain::getFunctionOnBoundaryCode() const
67 {
68 throwStandardException("AbstractContinuousDomain::getFunctionOnBoundaryCode");
69 return 0;
70 }
71
72 int AbstractContinuousDomain::getReducedFunctionOnBoundaryCode() const
73 {
74 throwStandardException("AbstractContinuousDomain::getReducedFunctionOnBoundaryCode");
75 return 0;
76 }
77
78 int AbstractContinuousDomain::getFunctionOnContactZeroCode() const
79 {
80 throwStandardException("AbstractContinuousDomain::getFunctionOnContactZeroCode");
81 return 0;
82 }
83
84 int AbstractContinuousDomain::getReducedFunctionOnContactZeroCode() const
85 {
86 throwStandardException("AbstractContinuousDomain::getReducedFunctionOnContactZeroCode");
87 return 0;
88 }
89
90 int AbstractContinuousDomain::getFunctionOnContactOneCode() const
91 {
92 throwStandardException("AbstractContinuousDomain::getFunctionOnContactOneCode");
93 return 0;
94 }
95
96 int AbstractContinuousDomain::getReducedFunctionOnContactOneCode() const
97 {
98 throwStandardException("AbstractContinuousDomain::getReducedFunctionOnContactOneCode");
99 return 0;
100 }
101
102 int AbstractContinuousDomain::getSolutionCode() const
103 {
104 throwStandardException("AbstractContinuousDomain::getSolutionCode");
105 return 0;
106 }
107
108 int AbstractContinuousDomain::getReducedSolutionCode() const
109 {
110 throwStandardException("AbstractContinuousDomain::getReducedSolutionCode");
111 return 0;
112 }
113
114 int AbstractContinuousDomain::getDiracDeltaFunctionCode() const
115 {
116 throwStandardException("AbstractContinuousDomain::getDiracDeltaFunctionCode");
117 return 0;
118 }
119
120 void AbstractContinuousDomain::setToIntegrals(std::vector<double>& integrals,const escript::Data& arg) const
121 {
122 throwStandardException("AbstractContinuousDomain::setToIntegrals");
123 return;
124 }
125
126 int AbstractContinuousDomain::getSystemMatrixTypeId(const int solver, const int precondioner, const int package, const bool symmetry) const
127 {
128 return 0;
129 }
130
131 int AbstractContinuousDomain::getTransportTypeId(const int solver, const int precondioner, const int package, const bool symmetry) const
132 {
133 return 0;
134 }
135
136 // const AbstractContinuousDomain& AbstractContinuousDomain::asAbstractContinuousDomain(const AbstractDomain& domain)
137 // {
138 // return dynamic_cast<const AbstractContinuousDomain&>(domain);
139 // }
140
141
142
143 void AbstractContinuousDomain::addPDEToSystem(
144 AbstractSystemMatrix& mat, escript::Data& rhs,
145 const escript::Data& A, const escript::Data& B, const escript::Data& C,
146 const escript::Data& D, const escript::Data& X, const escript::Data& Y,
147 const escript::Data& d, const escript::Data& y,
148 const escript::Data& d_contact, const escript::Data& y_contact) const
149 {
150 throwStandardException("AbstractContinuousDomain::addPDEToSystem");
151 return;
152 }
153
154 void AbstractContinuousDomain::addPDEToRHS(escript::Data& rhs,
155 const escript::Data& X, const escript::Data& Y,
156 const escript::Data& y, const escript::Data& y_contact) const
157 {
158 throwStandardException("AbstractContinuousDomain::addPDEToRHS");
159 return;
160 }
161
162 void AbstractContinuousDomain::addPDEToTransportProblem(
163 AbstractTransportProblem& tp, escript::Data& source,
164 const escript::Data& M,
165 const escript::Data& A, const escript::Data& B, const escript::Data& C,const escript::Data& D,
166 const escript::Data& X,const escript::Data& Y,
167 const escript::Data& d, const escript::Data& y,
168 const escript::Data& d_contact,const escript::Data& y_contact) const
169 {
170 throwStandardException("AbstractContinuousDomain::addPDEToTransportProblem");
171 return;
172 }
173
174 ASM_ptr AbstractContinuousDomain::newSystemMatrix(
175 const int row_blocksize,
176 const escript::FunctionSpace& row_functionspace,
177 const int column_blocksize,
178 const escript::FunctionSpace& column_functionspace,
179 const int type) const
180 {
181 throwStandardException("AbstractContinuousDomain::newSystemMatrix");
182 return ASM_ptr();
183 }
184
185 ATP_ptr AbstractContinuousDomain::newTransportProblem(
186 const bool useBackwardEuler,
187 const int blocksize,
188 const escript::FunctionSpace& functionspace,
189 const int type) const
190 {
191 throwStandardException("AbstractContinuousDomain::newTransportProblem");
192 return ATP_ptr();
193 }
194
195 int AbstractContinuousDomain::getNumDataPointsGlobal() const
196 {
197 throwStandardException("AbstractContinuousDomain::getNumDataPointsGlobal");
198 return 1;
199 }
200
201 std::pair<int,int> AbstractContinuousDomain::getDataShape(int functionSpaceCode) const
202 {
203 throwStandardException("AbstractContinuousDomain::getDataShape");
204 return std::pair<int,int>(0,0);
205 }
206
207 void AbstractContinuousDomain::setNewX(const escript::Data& arg)
208 {
209 throwStandardException("AbstractContinuousDomain::setNewX");
210 return;
211 }
212
213 void AbstractContinuousDomain::Print_Mesh_Info(const bool full) const
214 {
215 throwStandardException("AbstractContinuousDomain::Print_Mesh_Info");
216 return;
217 }
218
219
220
221 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26