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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (hide annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 8 months ago) by trankine
File size: 3637 byte(s)
And get the *(&(*&(* name right
1 jgs 480
2 ksteube 1312 /* $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 jgs 474 #include "FunctionSpaceFactory.h"
17     #include "AbstractContinuousDomain.h"
18 jgs 82
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 gross 1062
27     FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
28     {
29     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
30     return FunctionSpace(domain,temp.getReducedContinuousFunctionCode());
31     }
32 jgs 82
33     FunctionSpace function(const AbstractDomain& domain)
34     {
35     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
36     return FunctionSpace(domain,temp.getFunctionCode());
37     }
38    
39 gross 1062 FunctionSpace reducedFunction(const AbstractDomain& domain)
40 gross 1059 {
41     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
42     return FunctionSpace(domain,temp.getReducedFunctionCode());
43     }
44    
45 jgs 82 FunctionSpace functionOnBoundary(const AbstractDomain& domain)
46     {
47     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
48     return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
49     }
50    
51 gross 1062 FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
52 gross 1059 {
53     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
54     return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());
55     }
56    
57 jgs 82 FunctionSpace functionOnContactZero(const AbstractDomain& domain)
58     {
59     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
60     return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
61     }
62 gross 1059
63 gross 1062 FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
64 gross 1059 {
65     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
66     return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());
67     }
68 jgs 82
69     FunctionSpace functionOnContactOne(const AbstractDomain& domain)
70     {
71     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
72     return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
73     }
74    
75 gross 1062 FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
76 gross 1059 {
77     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
78     return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());
79     }
80    
81 jgs 82 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