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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1872 - (hide annotations)
Mon Oct 13 00:18:55 2008 UTC (11 years, 5 months ago) by jfenwick
File size: 3719 byte(s)
Closing the moreshared branch

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 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getContinuousFunctionCode());
24 jgs 82 }
25 gross 1062
26     FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
27     {
28     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
29 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getReducedContinuousFunctionCode());
30 gross 1062 }
31 jgs 82
32     FunctionSpace function(const AbstractDomain& domain)
33     {
34     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
35 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getFunctionCode());
36 jgs 82 }
37    
38 gross 1062 FunctionSpace reducedFunction(const AbstractDomain& domain)
39 gross 1059 {
40     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
41 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getReducedFunctionCode());
42 gross 1059 }
43    
44 jgs 82 FunctionSpace functionOnBoundary(const AbstractDomain& domain)
45     {
46     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
47 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getFunctionOnBoundaryCode());
48 jgs 82 }
49    
50 gross 1062 FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
51 gross 1059 {
52     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
53 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getReducedFunctionOnBoundaryCode());
54 gross 1059 }
55    
56 jgs 82 FunctionSpace functionOnContactZero(const AbstractDomain& domain)
57     {
58     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
59 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getFunctionOnContactZeroCode());
60 jgs 82 }
61 gross 1059
62 gross 1062 FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
63 gross 1059 {
64     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
65 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getReducedFunctionOnContactZeroCode());
66 gross 1059 }
67 jgs 82
68     FunctionSpace functionOnContactOne(const AbstractDomain& domain)
69     {
70     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
71 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getFunctionOnContactOneCode());
72 jgs 82 }
73    
74 gross 1062 FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
75 gross 1059 {
76     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
77 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getReducedFunctionOnContactOneCode());
78 gross 1059 }
79    
80 jgs 82 FunctionSpace solution(const AbstractDomain& domain)
81     {
82     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
83 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getSolutionCode());
84 jgs 82 }
85    
86     FunctionSpace reducedSolution(const AbstractDomain& domain)
87     {
88     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
89 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getReducedSolutionCode());
90 jgs 82 }
91    
92     FunctionSpace diracDeltaFunction(const AbstractDomain& domain)
93     {
94     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
95 jfenwick 1872 return FunctionSpace(domain.getPtr(),temp.getDiracDeltaFunctionCode());
96 jgs 82 }
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