/[escript]/trunk/escript/src/AbstractContinuousDomain.cpp
ViewVC logotype

Contents of /trunk/escript/src/AbstractContinuousDomain.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2089 - (show annotations)
Mon Nov 24 06:07:29 2008 UTC (10 years, 9 months ago) by jfenwick
File size: 3825 byte(s)
Resolve mantis issue 216.

Removed the asAbstractContinuousDomain(X) member which did not take cast 
failure into account.
Rewrote the few places where it was used.



1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2008 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 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26