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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26