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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 480 - (hide annotations)
Wed Feb 1 05:15:12 2006 UTC (13 years, 2 months ago) by jgs
File size: 2849 byte(s)
rationalise #includes and forward declarations

1 jgs 82 /*
2     ******************************************************************************
3     * *
4     * COPYRIGHT ACcESS 2004 - All Rights Reserved *
5     * *
6     * This software is the property of ACcESS. No part of this code *
7     * may be copied in any form or by any means without the expressed written *
8     * consent of ACcESS. Copying, use or modification of this software *
9     * by any unauthorised person is illegal unless that person has a software *
10     * license agreement with ACcESS. *
11     * *
12     ******************************************************************************
13     */
14 jgs 480
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    
26     FunctionSpace function(const AbstractDomain& domain)
27     {
28     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
29     return FunctionSpace(domain,temp.getFunctionCode());
30     }
31    
32     FunctionSpace functionOnBoundary(const AbstractDomain& domain)
33     {
34     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
35     return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
36     }
37    
38     FunctionSpace functionOnContactZero(const AbstractDomain& domain)
39     {
40     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
41     return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
42     }
43    
44     FunctionSpace functionOnContactOne(const AbstractDomain& domain)
45     {
46     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
47     return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
48     }
49    
50     FunctionSpace solution(const AbstractDomain& domain)
51     {
52     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
53     return FunctionSpace(domain,temp.getSolutionCode());
54     }
55    
56     FunctionSpace reducedSolution(const AbstractDomain& domain)
57     {
58     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
59     return FunctionSpace(domain,temp.getReducedSolutionCode());
60     }
61    
62     FunctionSpace diracDeltaFunction(const AbstractDomain& domain)
63     {
64     const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
65     return FunctionSpace(domain,temp.getDiracDeltaFunctionCode());
66     }
67    
68     } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26