/[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 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC revision 1872 by jfenwick, Mon Oct 13 00:18:55 2008 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2008 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * 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 21  namespace escript { Line 20  namespace escript {
20  FunctionSpace continuousFunction(const AbstractDomain& domain)  FunctionSpace continuousFunction(const AbstractDomain& domain)
21  {  {
22    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
23    return FunctionSpace(domain,temp.getContinuousFunctionCode());    return FunctionSpace(domain.getPtr(),temp.getContinuousFunctionCode());
24  }  }
25    
26  FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)  FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
27  {  {
28    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
29    return FunctionSpace(domain,temp.getReducedContinuousFunctionCode());    return FunctionSpace(domain.getPtr(),temp.getReducedContinuousFunctionCode());
30  }  }
31    
32  FunctionSpace function(const AbstractDomain& domain)  FunctionSpace function(const AbstractDomain& domain)
33  {  {
34    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
35    return FunctionSpace(domain,temp.getFunctionCode());    return FunctionSpace(domain.getPtr(),temp.getFunctionCode());
36  }  }
37    
38  FunctionSpace reducedFunction(const AbstractDomain& domain)  FunctionSpace reducedFunction(const AbstractDomain& domain)
39  {  {
40    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
41    return FunctionSpace(domain,temp.getReducedFunctionCode());    return FunctionSpace(domain.getPtr(),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.getPtr(),temp.getFunctionOnBoundaryCode());
48  }  }
49    
50  FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)  FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
51  {  {
52    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
53    return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());    return FunctionSpace(domain.getPtr(),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.getPtr(),temp.getFunctionOnContactZeroCode());
60  }  }
61    
62  FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)  FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
63  {  {
64    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
65    return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());    return FunctionSpace(domain.getPtr(),temp.getReducedFunctionOnContactZeroCode());
66  }  }
67    
68  FunctionSpace functionOnContactOne(const AbstractDomain& domain)  FunctionSpace functionOnContactOne(const AbstractDomain& domain)
69  {  {
70    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
71    return FunctionSpace(domain,temp.getFunctionOnContactOneCode());    return FunctionSpace(domain.getPtr(),temp.getFunctionOnContactOneCode());
72  }  }
73    
74  FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)  FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
75  {  {
76    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
77    return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());    return FunctionSpace(domain.getPtr(),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);
83    return FunctionSpace(domain,temp.getSolutionCode());    return FunctionSpace(domain.getPtr(),temp.getSolutionCode());
84  }  }
85    
86  FunctionSpace reducedSolution(const AbstractDomain& domain)  FunctionSpace reducedSolution(const AbstractDomain& domain)
87  {  {
88    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
89    return FunctionSpace(domain,temp.getReducedSolutionCode());    return FunctionSpace(domain.getPtr(),temp.getReducedSolutionCode());
90  }  }
91    
92  FunctionSpace diracDeltaFunction(const AbstractDomain& domain)  FunctionSpace diracDeltaFunction(const AbstractDomain& domain)
93  {  {
94    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
95    return FunctionSpace(domain,temp.getDiracDeltaFunctionCode());    return FunctionSpace(domain.getPtr(),temp.getDiracDeltaFunctionCode());
96  }  }
97    
98  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.1312  
changed lines
  Added in v.1872

  ViewVC Help
Powered by ViewVC 1.1.26