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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1062 - (show annotations)
Mon Mar 26 06:17:53 2007 UTC (12 years, 4 months ago) by gross
File size: 3762 byte(s)
reduced integration schemes are implemented now for grad, integrate, etc. Tests still to be added.
1 /*
2 ************************************************************
3 * Copyright 2006 by ACcESS MNRF *
4 * *
5 * http://www.access.edu.au *
6 * Primary Business: Queensland, Australia *
7 * Licensed under the Open Software License version 3.0 *
8 * http://www.opensource.org/licenses/osl-3.0.php *
9 * *
10 ************************************************************
11 */
12
13 #include "FunctionSpaceFactory.h"
14 #include "AbstractContinuousDomain.h"
15
16 namespace escript {
17
18 FunctionSpace continuousFunction(const AbstractDomain& domain)
19 {
20 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
21 return FunctionSpace(domain,temp.getContinuousFunctionCode());
22 }
23
24 FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
25 {
26 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
27 return FunctionSpace(domain,temp.getReducedContinuousFunctionCode());
28 }
29
30 FunctionSpace function(const AbstractDomain& domain)
31 {
32 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
33 return FunctionSpace(domain,temp.getFunctionCode());
34 }
35
36 FunctionSpace reducedFunction(const AbstractDomain& domain)
37 {
38 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
39 return FunctionSpace(domain,temp.getReducedFunctionCode());
40 }
41
42 FunctionSpace functionOnBoundary(const AbstractDomain& domain)
43 {
44 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
45 return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
46 }
47
48 FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
49 {
50 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
51 return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());
52 }
53
54 FunctionSpace functionOnContactZero(const AbstractDomain& domain)
55 {
56 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
57 return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
58 }
59
60 FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
61 {
62 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
63 return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());
64 }
65
66 FunctionSpace functionOnContactOne(const AbstractDomain& domain)
67 {
68 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
69 return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
70 }
71
72 FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
73 {
74 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
75 return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());
76 }
77
78 FunctionSpace solution(const AbstractDomain& domain)
79 {
80 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
81 return FunctionSpace(domain,temp.getSolutionCode());
82 }
83
84 FunctionSpace reducedSolution(const AbstractDomain& domain)
85 {
86 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
87 return FunctionSpace(domain,temp.getReducedSolutionCode());
88 }
89
90 FunctionSpace diracDeltaFunction(const AbstractDomain& domain)
91 {
92 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
93 return FunctionSpace(domain,temp.getDiracDeltaFunctionCode());
94 }
95
96 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26