/[escript]/branches/diaplayground/escriptcore/src/AbstractContinuousDomain.cpp
ViewVC logotype

Contents of /branches/diaplayground/escriptcore/src/AbstractContinuousDomain.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5136 - (show annotations)
Tue Sep 9 07:13:55 2014 UTC (4 years, 5 months ago) by caltinay
File size: 6756 byte(s)
ripley now supports paso solvers again and returns an appropriate matrix type
id. Changed the getSystemMatrixTypeId() method to take a full SolverBuddy
instance and made some other simplifications.

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26