/[escript]/branches/refine/buckley/src/BuckleyDomain.cc
ViewVC logotype

Contents of /branches/refine/buckley/src/BuckleyDomain.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3671 - (show annotations)
Wed Nov 16 04:01:53 2011 UTC (9 years, 11 months ago) by jfenwick
File size: 4952 byte(s)
Rename complete
1 #include "BuckleyDomain.h"
2 #include "BuckleyException.h"
3
4 using namespace buckley;
5
6 namespace
7 {
8 // Need to put some thought into how many spaces we actually need
9 const int initialspace=1;
10 const int invalidspace=-1;
11
12 const int notIMPLEMENTED=-1;
13 }
14
15
16 BuckleyDomain::BuckleyDomain(double x, double y, double z)
17 :ot(x,y,z)
18 {
19 }
20
21 BuckleyDomain::~BuckleyDomain()
22 {
23 }
24
25 bool BuckleyDomain::isValidFunctionSpaceType(int functionSpaceType) const
26 {
27 return functionSpaceType==initialspace;
28 }
29
30 std::string BuckleyDomain::getDescription() const
31 {
32 return "Dummy text for domain";
33 }
34
35 int BuckleyDomain::getContinuousFunctionCode() const
36 {
37 return initialspace;
38 }
39
40 int BuckleyDomain::getReducedContinuousFunctionCode() const
41 {
42 return initialspace;
43 }
44
45 int BuckleyDomain::getFunctionCode() const
46 {
47 return invalidspace;
48 }
49
50 int BuckleyDomain::getReducedFunctionCode() const
51 {
52 return invalidspace;
53 }
54
55 int BuckleyDomain::getFunctionOnBoundaryCode() const
56 {
57 return invalidspace;
58 }
59
60 int BuckleyDomain::getReducedFunctionOnBoundaryCode() const
61 {
62 return invalidspace;
63 }
64
65 int BuckleyDomain::getFunctionOnContactZeroCode() const
66 {
67 return invalidspace;
68 }
69
70 int BuckleyDomain::getReducedFunctionOnContactZeroCode() const
71 {
72 return invalidspace;
73 }
74
75 int BuckleyDomain::getFunctionOnContactOneCode() const
76 {
77 return invalidspace;
78 }
79
80 int BuckleyDomain::getReducedFunctionOnContactOneCode() const
81 {
82 return invalidspace;
83 }
84
85 int BuckleyDomain::getSolutionCode() const
86 {
87 return initialspace;
88 }
89
90 int BuckleyDomain::getReducedSolutionCode() const
91 {
92 return initialspace;
93 }
94
95 // hahaha - no
96 int BuckleyDomain::getDiracDeltaFunctionsCode() const
97 {
98 return invalidspace ;
99 }
100
101 int BuckleyDomain::getSystemMatrixTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const
102 {
103 return notIMPLEMENTED;
104 }
105
106 int BuckleyDomain::getTransportTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const
107 {
108 return notIMPLEMENTED;
109 }
110
111 void BuckleyDomain::setToIntegrals(std::vector<double>& integrals,const escript::Data& arg) const
112 {
113 throw BuckleyException("Not Implemented");
114 }
115
116 void BuckleyDomain::addPDEToSystem(
117 escript::AbstractSystemMatrix& mat, escript::Data& rhs,
118 const escript::Data& A, const escript::Data& B, const escript::Data& C,
119 const escript::Data& D, const escript::Data& X, const escript::Data& Y,
120 const escript::Data& d, const escript::Data& y,
121 const escript::Data& d_contact, const escript::Data& y_contact,
122 const escript::Data& d_dirac, const escript::Data& y_dirac) const
123 {
124 throw BuckleyException("Not Implemented");
125 }
126
127 void BuckleyDomain::addPDEToRHS(escript::Data& rhs,
128 const escript::Data& X, const escript::Data& Y,
129 const escript::Data& y, const escript::Data& y_contact, const escript::Data& y_dirac) const
130 {
131 throw BuckleyException("Not Implemented");
132 }
133
134 void BuckleyDomain::addPDEToTransportProblem(
135 escript::AbstractTransportProblem& tp, escript::Data& source,
136 const escript::Data& M,
137 const escript::Data& A, const escript::Data& B, const escript::Data& C,const escript::Data& D,
138 const escript::Data& X,const escript::Data& Y,
139 const escript::Data& d, const escript::Data& y,
140 const escript::Data& d_contact,const escript::Data& y_contact,
141 const escript::Data& d_dirac,const escript::Data& y_dirac) const
142 {
143 throw BuckleyException("Not Implemented");
144 }
145
146 ASM_ptr BuckleyDomain::newSystemMatrix(
147 const int row_blocksize,
148 const escript::FunctionSpace& row_functionspace,
149 const int column_blocksize,
150 const escript::FunctionSpace& column_functionspace,
151 const int type) const
152 {
153 throw BuckleyException("Not Implemented");
154 }
155
156 ATP_ptr BuckleyDomain::newTransportProblem(
157 const bool useBackwardEuler,
158 const int blocksize,
159 const escript::FunctionSpace& functionspace,
160 const int type) const
161 {
162 throw BuckleyException("Not Implemented");
163 }
164
165 int BuckleyDomain::getNumDataPointsGlobal() const
166 {
167 throw BuckleyException("Not Implemented");
168 }
169
170
171 BUCKLEY_DLL_API
172 std::pair<int,int> BuckleyDomain::getDataShape(int functionSpaceCode) const
173 {
174 throw BuckleyException("Not Implemented");
175
176 }
177
178 BUCKLEY_DLL_API
179 void BuckleyDomain::setNewX(const escript::Data& arg)
180 {
181 throw BuckleyException("This domain does not support changing coordinates");
182 }
183
184
185 BUCKLEY_DLL_API
186 void BuckleyDomain::Print_Mesh_Info(const bool full) const
187 {
188 throw BuckleyException("Not Implemented");
189 }

  ViewVC Help
Powered by ViewVC 1.1.26