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

Annotation of /trunk/escript/src/AbstractDomain.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (hide annotations)
Wed Dec 15 07:08:39 2004 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/AbstractDomain.cpp
File size: 5054 byte(s)
*** empty log message ***

1 jgs 102 /* $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/AbstractDomain.h"
17     #include "escript/Data/DomainException.h"
18     #include "escript/Data/AbstractSystemMatrix.h"
19     #include "escript/Data/FunctionSpace.h"
20    
21     namespace escript {
22    
23     AbstractDomain::AbstractDomain() {
24     }
25    
26     AbstractDomain::~AbstractDomain() {
27     }
28    
29     void AbstractDomain::throwStandardException(const std::string& functionName) const
30     {
31     throw DomainException("Error - Base class function: " +
32     functionName + " should not be called. Programming error.");
33     }
34    
35     bool AbstractDomain::isValidFunctionSpaceType(int functionSpaceType) const
36     {
37     throwStandardException("AbstractDomain::isValidFunctionSpaceType");
38     return false;
39     }
40    
41     std::string AbstractDomain::getDescription() const
42     {
43     throwStandardException("AbstractDomain::getDescription");
44     return "";
45     }
46    
47     std::string AbstractDomain::functionSpaceTypeAsString(int functionSpaceType) const
48     {
49     throwStandardException("AbstractDomain::functionSpaceTypeAsString");
50     return "";
51     }
52    
53     int AbstractDomain::getDim() const
54     {
55     throwStandardException("AbstractDomain::getDim");
56     return 0;
57     }
58    
59     void AbstractDomain::write(const std::string& filename) const
60     {
61     throwStandardException("AbstractDomain::write");
62     return;
63     }
64    
65     void AbstractDomain::getTagList(int functionSpaceType, int** tagList, int* numTags) const
66     {
67     throwStandardException("AbstractDomain::getTagList");
68     return;
69     }
70    
71     std::pair<int,int> AbstractDomain::getDataShape(int functionSpaceCode) const
72     {
73     throwStandardException("AbstractDomain::getDataShape");
74     return std::pair<int,int>(0,0);
75     }
76    
77     int AbstractDomain::getTagFromSampleNo(int functionSpaceType, int sampleNo) const
78     {
79     throwStandardException("AbstractDomain::getTagFromSampleNo");
80     return 0;
81     }
82    
83     void AbstractDomain::setNewX(const escript::Data& arg)
84     {
85     throwStandardException("AbstractDomain::setNewX");
86     return;
87     }
88    
89     void AbstractDomain::interpolateOnDomain(escript::Data& target,const escript::Data& source) const
90     {
91     throwStandardException("AbstractDomain::interpolateOnDomain");
92     return;
93     }
94     void AbstractDomain::interpolateACross(escript::Data& target, const escript::Data& source) const
95     {
96     throwStandardException("AbstractDomain::interpolateACross");
97     return;
98     }
99    
100 jgs 102 escript::Data AbstractDomain::getX() const
101     {
102     throwStandardException("AbstractDomain::getX");
103     return Data();
104     }
105    
106     escript::Data AbstractDomain::getNormal() const
107     {
108     throwStandardException("AbstractDomain::getNormal");
109     return Data();
110     }
111     escript::Data AbstractDomain::getSize() const
112     {
113     throwStandardException("AbstractDomain::getSize");
114     return Data();
115     }
116 jgs 82 void AbstractDomain::setToX(escript::Data& out) const
117     {
118     throwStandardException("AbstractDomain::setToX");
119     return;
120     }
121    
122     void AbstractDomain::setToNormal(escript::Data& out) const
123     {
124     throwStandardException("AbstractDomain::setToNormal");
125     return;
126     }
127     void AbstractDomain::setToSize(escript::Data& out) const
128     {
129     throwStandardException("AbstractDomain::setToSize");
130     return;
131     }
132    
133     void AbstractDomain::setToGradient(escript::Data& grad, const escript::Data& arg) const
134     {
135     throwStandardException("AbstractDomain::setToGradient");
136     return;
137     }
138    
139     void AbstractDomain::saveDX(const std::string& filename,const escript::Data& arg) const
140     {
141     throwStandardException("AbstractDomain::saveDX");
142     return;
143     }
144    
145     bool AbstractDomain::probeInterpolationOnDomain(int functionSpaceType_source,int functionSpaceType_target) const
146     {
147     throwStandardException("AbstractDomain::probeInterpolationOnDomain");
148     return false;
149     }
150    
151     bool AbstractDomain::probeInterpolationACross(int functionSpaceType_source,const AbstractDomain& targetDomain, int functionSpaceType_target) const
152     {
153     throwStandardException("AbstractDomain::probeInterpolationACross");
154     return false;
155     }
156    
157     bool AbstractDomain::isCellOriented(int functionSpaceCode) const
158     {
159     throwStandardException("AbstractDomain::isCellOriented");
160     return false;
161     }
162    
163     bool AbstractDomain::operator==(const AbstractDomain& other) const
164     {
165     return (this==&other);
166     }
167    
168     bool AbstractDomain::operator!=(const AbstractDomain& other) const
169     {
170     return (!operator==(other));
171     }
172    
173     } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26