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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (hide annotations)
Thu Sep 25 23:11:13 2008 UTC (10 years, 6 months ago) by ksteube
File size: 3602 byte(s)
Copyright updated in all files

1 jgs 480
2 ksteube 1312 /*******************************************************
3 ksteube 1811 *
4     * Copyright (c) 2003-2008 by University of Queensland
5     * 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 jgs 82
18     namespace escript {
19    
20     FunctionSpace continuousFunction(const AbstractDomain& domain)
21     {
22     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
23     return FunctionSpace(domain,temp.getContinuousFunctionCode());
24     }
25 gross 1062
26     FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
27     {
28     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
29     return FunctionSpace(domain,temp.getReducedContinuousFunctionCode());
30     }
31 jgs 82
32     FunctionSpace function(const AbstractDomain& domain)
33     {
34     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
35     return FunctionSpace(domain,temp.getFunctionCode());
36     }
37    
38 gross 1062 FunctionSpace reducedFunction(const AbstractDomain& domain)
39 gross 1059 {
40     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
41     return FunctionSpace(domain,temp.getReducedFunctionCode());
42     }
43    
44 jgs 82 FunctionSpace functionOnBoundary(const AbstractDomain& domain)
45     {
46     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
47     return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
48     }
49    
50 gross 1062 FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
51 gross 1059 {
52     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
53     return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());
54     }
55    
56 jgs 82 FunctionSpace functionOnContactZero(const AbstractDomain& domain)
57     {
58     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
59     return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
60     }
61 gross 1059
62 gross 1062 FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
63 gross 1059 {
64     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
65     return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());
66     }
67 jgs 82
68     FunctionSpace functionOnContactOne(const AbstractDomain& domain)
69     {
70     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
71     return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
72     }
73    
74 gross 1062 FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
75 gross 1059 {
76     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
77     return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());
78     }
79    
80 jgs 82 FunctionSpace solution(const AbstractDomain& domain)
81     {
82     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
83     return FunctionSpace(domain,temp.getSolutionCode());
84     }
85    
86     FunctionSpace reducedSolution(const AbstractDomain& domain)
87     {
88     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
89     return FunctionSpace(domain,temp.getReducedSolutionCode());
90     }
91    
92     FunctionSpace diracDeltaFunction(const AbstractDomain& domain)
93     {
94     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
95     return FunctionSpace(domain,temp.getDiracDeltaFunctionCode());
96     }
97    
98     } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26