/[escript]/trunk/esys2/bruce/src/Bruce/Bruce.cpp
ViewVC logotype

Contents of /trunk/esys2/bruce/src/Bruce/Bruce.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 149 - (show annotations)
Thu Sep 1 03:31:39 2005 UTC (15 years, 3 months ago) by jgs
File size: 1931 byte(s)
Merge of development branch dev-02 back to main trunk on 2005-09-01

1 // $Id$
2 /*
3 ******************************************************************************
4 * *
5 * COPYRIGHT ACcESS 2005 - 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 "bruce/Bruce/Bruce.h"
17
18 using namespace std;
19 using namespace escript;
20
21 namespace bruce {
22
23 const int Bruce::Nodes=0;
24 const int Bruce::Elements=1;
25
26 Bruce::Bruce()
27 {
28 }
29
30 Bruce::Bruce(const Bruce& other)
31 {
32 }
33
34 Bruce::~Bruce()
35 {
36 }
37
38 bool
39 Bruce::isValidFunctionSpaceType(int functionSpaceType) const
40 {
41 return (true);
42 }
43
44 int
45 Bruce::getDim() const
46 {
47 return 0;
48 }
49
50 pair<int,int>
51 Bruce::getDataShape(int functionSpaceCode) const
52 {
53 int numDataPointsPerSample=0;
54 int numSamples=0;
55 return pair<int,int>(numDataPointsPerSample,numSamples);
56 }
57
58 bool
59 Bruce::operator==(const AbstractDomain& other) const
60 {
61 const Bruce* temp=dynamic_cast<const Bruce*>(&other);
62 if (temp!=0) {
63 return (true);
64 } else {
65 return false;
66 }
67 }
68
69 bool
70 Bruce::operator!=(const AbstractDomain& other) const
71 {
72 return !(operator==(other));
73 }
74
75 Data
76 Bruce::getX() const
77 {
78 return continuousFunction(asAbstractContinuousDomain()).getX();
79 }
80
81 Data
82 Bruce::getSize() const
83 {
84 return function(asAbstractContinuousDomain()).getSize();
85 }
86
87 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26