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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1059 - (show annotations)
Fri Mar 23 11:01:53 2007 UTC (13 years ago) by gross
File size: 3513 byte(s)
first steps toward reduced element integration order. The escript bit is done but the finley part still needs work.
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 function(const AbstractDomain& domain)
25 {
26 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
27 return FunctionSpace(domain,temp.getFunctionCode());
28 }
29
30 FunctionSpace reducedfunction(const AbstractDomain& domain)
31 {
32 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
33 return FunctionSpace(domain,temp.getReducedFunctionCode());
34 }
35
36 FunctionSpace functionOnBoundary(const AbstractDomain& domain)
37 {
38 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
39 return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
40 }
41
42 FunctionSpace reducedfunctionOnBoundary(const AbstractDomain& domain)
43 {
44 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
45 return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());
46 }
47
48 FunctionSpace functionOnContactZero(const AbstractDomain& domain)
49 {
50 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
51 return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
52 }
53
54 FunctionSpace reducedfunctionOnContactZero(const AbstractDomain& domain)
55 {
56 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
57 return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());
58 }
59
60 FunctionSpace functionOnContactOne(const AbstractDomain& domain)
61 {
62 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
63 return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
64 }
65
66 FunctionSpace reducedfunctionOnContactOne(const AbstractDomain& domain)
67 {
68 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
69 return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());
70 }
71
72 FunctionSpace solution(const AbstractDomain& domain)
73 {
74 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
75 return FunctionSpace(domain,temp.getSolutionCode());
76 }
77
78 FunctionSpace reducedSolution(const AbstractDomain& domain)
79 {
80 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
81 return FunctionSpace(domain,temp.getReducedSolutionCode());
82 }
83
84 FunctionSpace diracDeltaFunction(const AbstractDomain& domain)
85 {
86 const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
87 return FunctionSpace(domain,temp.getDiracDeltaFunctionCode());
88 }
89
90 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26