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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3668 - (show annotations)
Wed Nov 16 01:49:46 2011 UTC (9 years, 11 months ago) by jfenwick
File size: 4760 byte(s)
Stage 1 rename
1 #include "RDomain.h"
2 #include "RDomainException.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 RDomain::RDomain(double x, double y, double z)
17 :ot(x,y,z)
18 {
19 }
20
21 RDomain::~RDomain()
22 {
23 }
24
25 bool RDomain::isValidFunctionSpaceType(int functionSpaceType) const
26 {
27 return functionSpaceType==initialspace;
28 }
29
30 std::string RDomain::getDescription() const
31 {
32 return "Dummy text for domain";
33 }
34
35 int RDomain::getContinuousFunctionCode() const
36 {
37 return initialspace;
38 }
39
40 int RDomain::getReducedContinuousFunctionCode() const
41 {
42 return initialspace;
43 }
44
45 int RDomain::getFunctionCode() const
46 {
47 return invalidspace;
48 }
49
50 int RDomain::getReducedFunctionCode() const
51 {
52 return invalidspace;
53 }
54
55 int RDomain::getFunctionOnBoundaryCode() const
56 {
57 return invalidspace;
58 }
59
60 int RDomain::getReducedFunctionOnBoundaryCode() const
61 {
62 return invalidspace;
63 }
64
65 int RDomain::getFunctionOnContactZeroCode() const
66 {
67 return invalidspace;
68 }
69
70 int RDomain::getReducedFunctionOnContactZeroCode() const
71 {
72 return invalidspace;
73 }
74
75 int RDomain::getFunctionOnContactOneCode() const
76 {
77 return invalidspace;
78 }
79
80 int RDomain::getReducedFunctionOnContactOneCode() const
81 {
82 return invalidspace;
83 }
84
85 int RDomain::getSolutionCode() const
86 {
87 return initialspace;
88 }
89
90 int RDomain::getReducedSolutionCode() const
91 {
92 return initialspace;
93 }
94
95 // hahaha - no
96 int RDomain::getDiracDeltaFunctionsCode() const
97 {
98 return invalidspace ;
99 }
100
101 int RDomain::getSystemMatrixTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const
102 {
103 return notIMPLEMENTED;
104 }
105
106 int RDomain::getTransportTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const
107 {
108 return notIMPLEMENTED;
109 }
110
111 void RDomain::setToIntegrals(std::vector<double>& integrals,const escript::Data& arg) const
112 {
113 throw RDomainException("Not Implemented");
114 }
115
116 void RDomain::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 RDomainException("Not Implemented");
125 }
126
127 void RDomain::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 RDomainException("Not Implemented");
132 }
133
134 void RDomain::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 RDomainException("Not Implemented");
144 }
145
146 ASM_ptr RDomain::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 RDomainException("Not Implemented");
154 }
155
156 ATP_ptr RDomain::newTransportProblem(
157 const bool useBackwardEuler,
158 const int blocksize,
159 const escript::FunctionSpace& functionspace,
160 const int type) const
161 {
162 throw RDomainException("Not Implemented");
163 }
164
165 int RDomain::getNumDataPointsGlobal() const
166 {
167 throw RDomainException("Not Implemented");
168 }
169
170
171 BUCKLEY_DLL_API
172 std::pair<int,int> RDomain::getDataShape(int functionSpaceCode) const
173 {
174 throw RDomainException("Not Implemented");
175
176 }
177
178 BUCKLEY_DLL_API
179 void RDomain::setNewX(const escript::Data& arg)
180 {
181 throw RDomainException("This domain does not support changing coordinates");
182 }
183
184
185 BUCKLEY_DLL_API
186 void RDomain::Print_Mesh_Info(const bool full) const
187 {
188 throw RDomainException("Not Implemented");
189 }

  ViewVC Help
Powered by ViewVC 1.1.26