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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2548 - (hide annotations)
Mon Jul 20 06:20:06 2009 UTC (10 years, 8 months ago) by jfenwick
File size: 2846 byte(s)
Updating copyright notices
1 jgs 480
2 ksteube 1312 /*******************************************************
3 ksteube 1811 *
4 jfenwick 2548 * Copyright (c) 2003-2009 by University of Queensland
5 ksteube 1811 * 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 ksteube 1312
14 ksteube 1811
15 jgs 474 #include "FunctionSpaceFactory.h"
16     #include "AbstractContinuousDomain.h"
17 jfenwick 2089 #include "FunctionSpaceException.h"
18 jgs 82
19     namespace escript {
20    
21 jfenwick 2089 #define CTS_CHECK const AbstractContinuousDomain* temp=dynamic_cast<const AbstractContinuousDomain*>(&domain);\
22     if (temp==0)\
23     {\
24     throw FunctionSpaceException("This method will only make FunctionSpaces for ContinuousDomains.");\
25     }
26    
27    
28 jgs 82 FunctionSpace continuousFunction(const AbstractDomain& domain)
29     {
30 jfenwick 2089 CTS_CHECK
31     return FunctionSpace(domain.getPtr(),temp->getContinuousFunctionCode());
32 jgs 82 }
33 gross 1062
34     FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
35     {
36 jfenwick 2089 CTS_CHECK
37     return FunctionSpace(domain.getPtr(),temp->getReducedContinuousFunctionCode());
38 gross 1062 }
39 jgs 82
40     FunctionSpace function(const AbstractDomain& domain)
41     {
42 jfenwick 2089 CTS_CHECK
43     return FunctionSpace(domain.getPtr(),temp->getFunctionCode());
44 jgs 82 }
45    
46 gross 1062 FunctionSpace reducedFunction(const AbstractDomain& domain)
47 gross 1059 {
48 jfenwick 2089 CTS_CHECK
49     return FunctionSpace(domain.getPtr(),temp->getReducedFunctionCode());
50 gross 1059 }
51    
52 jgs 82 FunctionSpace functionOnBoundary(const AbstractDomain& domain)
53     {
54 jfenwick 2089 CTS_CHECK
55     return FunctionSpace(domain.getPtr(),temp->getFunctionOnBoundaryCode());
56 jgs 82 }
57    
58 gross 1062 FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
59 gross 1059 {
60 jfenwick 2089 CTS_CHECK
61     return FunctionSpace(domain.getPtr(),temp->getReducedFunctionOnBoundaryCode());
62 gross 1059 }
63    
64 jgs 82 FunctionSpace functionOnContactZero(const AbstractDomain& domain)
65     {
66 jfenwick 2089 CTS_CHECK
67     return FunctionSpace(domain.getPtr(),temp->getFunctionOnContactZeroCode());
68 jgs 82 }
69 gross 1059
70 gross 1062 FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
71 gross 1059 {
72 jfenwick 2089 CTS_CHECK
73     return FunctionSpace(domain.getPtr(),temp->getReducedFunctionOnContactZeroCode());
74 gross 1059 }
75 jgs 82
76     FunctionSpace functionOnContactOne(const AbstractDomain& domain)
77     {
78 jfenwick 2089 CTS_CHECK
79     return FunctionSpace(domain.getPtr(),temp->getFunctionOnContactOneCode());
80 jgs 82 }
81    
82 gross 1062 FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
83 gross 1059 {
84 jfenwick 2089 CTS_CHECK
85     return FunctionSpace(domain.getPtr(),temp->getReducedFunctionOnContactOneCode());
86 gross 1059 }
87    
88 jgs 82 FunctionSpace solution(const AbstractDomain& domain)
89     {
90 jfenwick 2089 CTS_CHECK
91     return FunctionSpace(domain.getPtr(),temp->getSolutionCode());
92 jgs 82 }
93    
94     FunctionSpace reducedSolution(const AbstractDomain& domain)
95     {
96 jfenwick 2089 CTS_CHECK
97     return FunctionSpace(domain.getPtr(),temp->getReducedSolutionCode());
98 jgs 82 }
99    
100     FunctionSpace diracDeltaFunction(const AbstractDomain& domain)
101     {
102 jfenwick 2089 CTS_CHECK
103     return FunctionSpace(domain.getPtr(),temp->getDiracDeltaFunctionCode());
104 jgs 82 }
105    
106     } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26