/[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 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 1  Line 1 
1  /*  
2   ************************************************************  /* $Id$ */
3   *          Copyright 2006 by ACcESS MNRF                   *  
4   *                                                          *  /*******************************************************
5   *              http://www.access.edu.au                    *   *
6   *       Primary Business: Queensland, Australia            *   *           Copyright 2003-2007 by ACceSS MNRF
7   *  Licensed under the Open Software License version 3.0    *   *       Copyright 2007 by University of Queensland
8   *     http://www.opensource.org/licenses/osl-3.0.php       *   *
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  #include "FunctionSpaceFactory.h"  #include "FunctionSpaceFactory.h"
17  #include "AbstractContinuousDomain.h"  #include "AbstractContinuousDomain.h"
# Line 20  FunctionSpace continuousFunction(const A Line 23  FunctionSpace continuousFunction(const A
23    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
24    return FunctionSpace(domain,temp.getContinuousFunctionCode());    return FunctionSpace(domain,temp.getContinuousFunctionCode());
25  }  }
26    
27    FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
28    {
29      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
30      return FunctionSpace(domain,temp.getReducedContinuousFunctionCode());
31    }
32    
33  FunctionSpace function(const AbstractDomain& domain)  FunctionSpace function(const AbstractDomain& domain)
34  {  {
# Line 27  FunctionSpace function(const AbstractDom Line 36  FunctionSpace function(const AbstractDom
36    return FunctionSpace(domain,temp.getFunctionCode());    return FunctionSpace(domain,temp.getFunctionCode());
37  }  }
38    
39    FunctionSpace reducedFunction(const AbstractDomain& domain)
40    {
41      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
42      return FunctionSpace(domain,temp.getReducedFunctionCode());
43    }
44    
45  FunctionSpace functionOnBoundary(const AbstractDomain& domain)  FunctionSpace functionOnBoundary(const AbstractDomain& domain)
46  {  {
47    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
48    return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());    return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
49  }  }
50    
51    FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
52    {
53      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
54      return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());
55    }
56    
57  FunctionSpace functionOnContactZero(const AbstractDomain& domain)  FunctionSpace functionOnContactZero(const AbstractDomain& domain)
58  {  {
59    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
60    return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());    return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
61  }  }
62    
63    FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
64    {
65      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
66      return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());
67    }
68    
69  FunctionSpace functionOnContactOne(const AbstractDomain& domain)  FunctionSpace functionOnContactOne(const AbstractDomain& domain)
70  {  {
# Line 45  FunctionSpace functionOnContactOne(const Line 72  FunctionSpace functionOnContactOne(const
72    return FunctionSpace(domain,temp.getFunctionOnContactOneCode());    return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
73  }  }
74    
75    FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
76    {
77      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
78      return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());
79    }
80    
81  FunctionSpace solution(const AbstractDomain& domain)  FunctionSpace solution(const AbstractDomain& domain)
82  {  {
83    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);

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

  ViewVC Help
Powered by ViewVC 1.1.26