1 |
jgs |
150 |
/* $Id$ */ |
2 |
jgs |
82 |
/* |
3 |
|
|
****************************************************************************** |
4 |
|
|
* * |
5 |
|
|
* COPYRIGHT ACcESS 2004 - All Rights Reserved * |
6 |
|
|
* * |
7 |
|
|
* This software is the property of ACcESS. No part of this code * |
8 |
|
|
* may be copied in any form or by any means without the expressed written * |
9 |
|
|
* consent of ACcESS. Copying, use or modification of this software * |
10 |
|
|
* by any unauthorised person is illegal unless that person has a software * |
11 |
|
|
* license agreement with ACcESS. * |
12 |
|
|
* * |
13 |
|
|
****************************************************************************** |
14 |
|
|
*/ |
15 |
|
|
|
16 |
|
|
#include "escript/Data/AbstractContinuousDomain.h" |
17 |
|
|
#include <boost/python/object.hpp> |
18 |
|
|
#include <boost/python/tuple.hpp> |
19 |
|
|
|
20 |
|
|
using namespace boost::python; |
21 |
|
|
|
22 |
|
|
namespace escript { |
23 |
|
|
|
24 |
|
|
AbstractContinuousDomain::AbstractContinuousDomain() |
25 |
|
|
{ |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
AbstractContinuousDomain::~AbstractContinuousDomain() |
29 |
|
|
{ |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
bool AbstractContinuousDomain::isValidFunctionSpaceType(int functionSpaceType) const |
33 |
|
|
{ |
34 |
|
|
throwStandardException("AbstractContinuousDomain::isValidFunctionSpaceType"); |
35 |
|
|
return false; |
36 |
|
|
} |
37 |
|
|
|
38 |
|
|
std::string AbstractContinuousDomain::getDescription() const |
39 |
|
|
{ |
40 |
|
|
throwStandardException("AbstractContinuousDomain::getDescription"); |
41 |
|
|
return ""; |
42 |
|
|
} |
43 |
|
|
|
44 |
|
|
int AbstractContinuousDomain::getContinuousFunctionCode() const |
45 |
|
|
{ |
46 |
|
|
throwStandardException("AbstractContinuousDomain::getContinuousFunctionCode"); |
47 |
|
|
return 0; |
48 |
|
|
} |
49 |
|
|
|
50 |
|
|
int AbstractContinuousDomain::getFunctionCode() const |
51 |
|
|
{ |
52 |
|
|
throwStandardException("AbstractContinuousDomain::getFunctionCode"); |
53 |
|
|
return 0; |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
int AbstractContinuousDomain::getFunctionOnBoundaryCode() const |
57 |
|
|
{ |
58 |
|
|
throwStandardException("AbstractContinuousDomain::getFunctionOnBoundaryCode"); |
59 |
|
|
return 0; |
60 |
|
|
} |
61 |
|
|
|
62 |
|
|
int AbstractContinuousDomain::getFunctionOnContactZeroCode() const |
63 |
|
|
{ |
64 |
|
|
throwStandardException("AbstractContinuousDomain::getFunctionOnContactZeroCode"); |
65 |
|
|
return 0; |
66 |
|
|
} |
67 |
|
|
|
68 |
|
|
int AbstractContinuousDomain::getFunctionOnContactOneCode() const |
69 |
|
|
{ |
70 |
|
|
throwStandardException("AbstractContinuousDomain::getFunctionOnContactOneCode"); |
71 |
|
|
return 0; |
72 |
|
|
} |
73 |
|
|
|
74 |
|
|
int AbstractContinuousDomain::getSolutionCode() const |
75 |
|
|
{ |
76 |
|
|
throwStandardException("AbstractContinuousDomain::getSolutionCode"); |
77 |
|
|
return 0; |
78 |
|
|
} |
79 |
|
|
|
80 |
|
|
int AbstractContinuousDomain::getReducedSolutionCode() const |
81 |
|
|
{ |
82 |
|
|
throwStandardException("AbstractContinuousDomain::getReducedSolutionCode"); |
83 |
|
|
return 0; |
84 |
|
|
} |
85 |
|
|
|
86 |
|
|
int AbstractContinuousDomain::getDiracDeltaFunctionCode() const |
87 |
|
|
{ |
88 |
|
|
throwStandardException("AbstractContinuousDomain::getDiracDeltaFunctionCode"); |
89 |
|
|
return 0; |
90 |
|
|
} |
91 |
|
|
|
92 |
|
|
void AbstractContinuousDomain::setToIntegrals(std::vector<double>& integrals,const escript::Data& arg) const |
93 |
|
|
{ |
94 |
|
|
throwStandardException("AbstractContinuousDomain::setToIntegrals"); |
95 |
|
|
return; |
96 |
|
|
} |
97 |
|
|
|
98 |
jgs |
150 |
int AbstractContinuousDomain::getSystemMatrixTypeId(const int solver, const int package, const bool symmetry) const |
99 |
jgs |
102 |
{ |
100 |
|
|
return 0; |
101 |
|
|
} |
102 |
|
|
|
103 |
jgs |
82 |
const AbstractContinuousDomain& AbstractContinuousDomain::asAbstractContinuousDomain(const AbstractDomain& domain) |
104 |
|
|
{ |
105 |
|
|
return dynamic_cast<const AbstractContinuousDomain&>(domain); |
106 |
|
|
} |
107 |
|
|
|
108 |
|
|
} // end of namespace |