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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3981 - (show annotations)
Fri Sep 21 02:47:54 2012 UTC (6 years, 11 months ago) by jfenwick
File size: 2967 byte(s)
First pass of updating copyright notices
1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2012 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15
16
17 #include "FunctionSpaceFactory.h"
18 #include "AbstractContinuousDomain.h"
19 #include "FunctionSpaceException.h"
20
21 namespace escript {
22
23 #define CTS_CHECK const AbstractContinuousDomain* temp=dynamic_cast<const AbstractContinuousDomain*>(&domain);\
24 if (temp==0)\
25 {\
26 throw FunctionSpaceException("This method will only make FunctionSpaces for ContinuousDomains.");\
27 }
28
29
30 FunctionSpace continuousFunction(const AbstractDomain& domain)
31 {
32 CTS_CHECK
33 return FunctionSpace(domain.getPtr(),temp->getContinuousFunctionCode());
34 }
35
36 FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
37 {
38 CTS_CHECK
39 return FunctionSpace(domain.getPtr(),temp->getReducedContinuousFunctionCode());
40 }
41
42 FunctionSpace function(const AbstractDomain& domain)
43 {
44 CTS_CHECK
45 return FunctionSpace(domain.getPtr(),temp->getFunctionCode());
46 }
47
48 FunctionSpace reducedFunction(const AbstractDomain& domain)
49 {
50 CTS_CHECK
51 return FunctionSpace(domain.getPtr(),temp->getReducedFunctionCode());
52 }
53
54 FunctionSpace functionOnBoundary(const AbstractDomain& domain)
55 {
56 CTS_CHECK
57 return FunctionSpace(domain.getPtr(),temp->getFunctionOnBoundaryCode());
58 }
59
60 FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
61 {
62 CTS_CHECK
63 return FunctionSpace(domain.getPtr(),temp->getReducedFunctionOnBoundaryCode());
64 }
65
66 FunctionSpace functionOnContactZero(const AbstractDomain& domain)
67 {
68 CTS_CHECK
69 return FunctionSpace(domain.getPtr(),temp->getFunctionOnContactZeroCode());
70 }
71
72 FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
73 {
74 CTS_CHECK
75 return FunctionSpace(domain.getPtr(),temp->getReducedFunctionOnContactZeroCode());
76 }
77
78 FunctionSpace functionOnContactOne(const AbstractDomain& domain)
79 {
80 CTS_CHECK
81 return FunctionSpace(domain.getPtr(),temp->getFunctionOnContactOneCode());
82 }
83
84 FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
85 {
86 CTS_CHECK
87 return FunctionSpace(domain.getPtr(),temp->getReducedFunctionOnContactOneCode());
88 }
89
90 FunctionSpace solution(const AbstractDomain& domain)
91 {
92 CTS_CHECK
93 return FunctionSpace(domain.getPtr(),temp->getSolutionCode());
94 }
95
96 FunctionSpace reducedSolution(const AbstractDomain& domain)
97 {
98 CTS_CHECK
99 return FunctionSpace(domain.getPtr(),temp->getReducedSolutionCode());
100 }
101
102 FunctionSpace diracDeltaFunctions(const AbstractDomain& domain)
103 {
104 CTS_CHECK
105 return FunctionSpace(domain.getPtr(),temp->getDiracDeltaFunctionsCode());
106 }
107
108 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26