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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1062 - (hide annotations)
Mon Mar 26 06:17:53 2007 UTC (12 years, 6 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 jgs 82 /*
2 elspeth 615 ************************************************************
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 jgs 82 */
12 jgs 480
13 jgs 474 #include "FunctionSpaceFactory.h"
14     #include "AbstractContinuousDomain.h"
15 jgs 82
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 gross 1062
24     FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
25     {
26     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
27     return FunctionSpace(domain,temp.getReducedContinuousFunctionCode());
28     }
29 jgs 82
30     FunctionSpace function(const AbstractDomain& domain)
31     {
32     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
33     return FunctionSpace(domain,temp.getFunctionCode());
34     }
35    
36 gross 1062 FunctionSpace reducedFunction(const AbstractDomain& domain)
37 gross 1059 {
38     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
39     return FunctionSpace(domain,temp.getReducedFunctionCode());
40     }
41    
42 jgs 82 FunctionSpace functionOnBoundary(const AbstractDomain& domain)
43     {
44     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
45     return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
46     }
47    
48 gross 1062 FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
49 gross 1059 {
50     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
51     return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());
52     }
53    
54 jgs 82 FunctionSpace functionOnContactZero(const AbstractDomain& domain)
55     {
56     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
57     return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
58     }
59 gross 1059
60 gross 1062 FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
61 gross 1059 {
62     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
63     return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());
64     }
65 jgs 82
66     FunctionSpace functionOnContactOne(const AbstractDomain& domain)
67     {
68     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
69     return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
70     }
71    
72 gross 1062 FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
73 gross 1059 {
74     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
75     return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());
76     }
77    
78 jgs 82 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