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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 615 by elspeth, Wed Mar 22 02:12:00 2006 UTC revision 1811 by ksteube, Thu Sep 25 23:11:13 2008 UTC
# Line 1  Line 1 
1  /*  
2   ************************************************************  /*******************************************************
3   *          Copyright 2006 by ACcESS MNRF                   *  *
4   *                                                          *  * Copyright (c) 2003-2008 by University of Queensland
5   *              http://www.access.edu.au                    *  * Earth Systems Science Computational Center (ESSCC)
6   *       Primary Business: Queensland, Australia            *  * http://www.uq.edu.au/esscc
7   *  Licensed under the Open Software License version 3.0    *  *
8   *     http://www.opensource.org/licenses/osl-3.0.php       *  * 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    
14    
15  #include "FunctionSpaceFactory.h"  #include "FunctionSpaceFactory.h"
16  #include "AbstractContinuousDomain.h"  #include "AbstractContinuousDomain.h"
# Line 20  FunctionSpace continuousFunction(const A Line 22  FunctionSpace continuousFunction(const A
22    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
23    return FunctionSpace(domain,temp.getContinuousFunctionCode());    return FunctionSpace(domain,temp.getContinuousFunctionCode());
24  }  }
25    
26    FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
27    {
28      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
29      return FunctionSpace(domain,temp.getReducedContinuousFunctionCode());
30    }
31    
32  FunctionSpace function(const AbstractDomain& domain)  FunctionSpace function(const AbstractDomain& domain)
33  {  {
# Line 27  FunctionSpace function(const AbstractDom Line 35  FunctionSpace function(const AbstractDom
35    return FunctionSpace(domain,temp.getFunctionCode());    return FunctionSpace(domain,temp.getFunctionCode());
36  }  }
37    
38    FunctionSpace reducedFunction(const AbstractDomain& domain)
39    {
40      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
41      return FunctionSpace(domain,temp.getReducedFunctionCode());
42    }
43    
44  FunctionSpace functionOnBoundary(const AbstractDomain& domain)  FunctionSpace functionOnBoundary(const AbstractDomain& domain)
45  {  {
46    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
47    return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());    return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
48  }  }
49    
50    FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
51    {
52      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
53      return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());
54    }
55    
56  FunctionSpace functionOnContactZero(const AbstractDomain& domain)  FunctionSpace functionOnContactZero(const AbstractDomain& domain)
57  {  {
58    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
59    return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());    return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
60  }  }
61    
62    FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
63    {
64      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
65      return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());
66    }
67    
68  FunctionSpace functionOnContactOne(const AbstractDomain& domain)  FunctionSpace functionOnContactOne(const AbstractDomain& domain)
69  {  {
# Line 45  FunctionSpace functionOnContactOne(const Line 71  FunctionSpace functionOnContactOne(const
71    return FunctionSpace(domain,temp.getFunctionOnContactOneCode());    return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
72  }  }
73    
74    FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
75    {
76      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
77      return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());
78    }
79    
80  FunctionSpace solution(const AbstractDomain& domain)  FunctionSpace solution(const AbstractDomain& domain)
81  {  {
82    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);

Legend:
Removed from v.615  
changed lines
  Added in v.1811

  ViewVC Help
Powered by ViewVC 1.1.26