/[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

trunk/esys2/escript/src/Data/FunctionSpaceFactory.cpp revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC trunk/escript/src/FunctionSpaceFactory.cpp revision 1062 by gross, Mon Mar 26 06:17:53 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   ******************************************************************************   ************************************************************
3   *                                                                            *   *          Copyright 2006 by ACcESS MNRF                   *
4   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *                                                          *
5   *                                                                            *   *              http://www.access.edu.au                    *
6   * This software is the property of ACcESS. No part of this code              *   *       Primary Business: Queensland, Australia            *
7   * may be copied in any form or by any means without the expressed written    *   *  Licensed under the Open Software License version 3.0    *
8   * consent of ACcESS.  Copying, use or modification of this software          *   *     http://www.opensource.org/licenses/osl-3.0.php       *
9   * by any unauthorised person is illegal unless that person has a software    *   *                                                          *
10   * license agreement with ACcESS.                                             *   ************************************************************
  *                                                                            *  
  ******************************************************************************  
11  */  */
12  #include "escript/Data/FunctionSpace.h"  
13  #include "escript/Data/FunctionSpaceFactory.h"  #include "FunctionSpaceFactory.h"
14  #include "escript/Data/AbstractContinuousDomain.h"  #include "AbstractContinuousDomain.h"
15    
16  namespace escript {  namespace escript {
17    
# Line 22  FunctionSpace continuousFunction(const A Line 20  FunctionSpace continuousFunction(const A
20    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
21    return FunctionSpace(domain,temp.getContinuousFunctionCode());    return FunctionSpace(domain,temp.getContinuousFunctionCode());
22  }  }
23    
24    FunctionSpace reducedContinuousFunction(const AbstractDomain& domain)
25    {
26      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
27      return FunctionSpace(domain,temp.getReducedContinuousFunctionCode());
28    }
29    
30  FunctionSpace function(const AbstractDomain& domain)  FunctionSpace function(const AbstractDomain& domain)
31  {  {
# Line 29  FunctionSpace function(const AbstractDom Line 33  FunctionSpace function(const AbstractDom
33    return FunctionSpace(domain,temp.getFunctionCode());    return FunctionSpace(domain,temp.getFunctionCode());
34  }  }
35    
36    FunctionSpace reducedFunction(const AbstractDomain& domain)
37    {
38      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
39      return FunctionSpace(domain,temp.getReducedFunctionCode());
40    }
41    
42  FunctionSpace functionOnBoundary(const AbstractDomain& domain)  FunctionSpace functionOnBoundary(const AbstractDomain& domain)
43  {  {
44    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
45    return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());    return FunctionSpace(domain,temp.getFunctionOnBoundaryCode());
46  }  }
47    
48    FunctionSpace reducedFunctionOnBoundary(const AbstractDomain& domain)
49    {
50      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
51      return FunctionSpace(domain,temp.getReducedFunctionOnBoundaryCode());
52    }
53    
54  FunctionSpace functionOnContactZero(const AbstractDomain& domain)  FunctionSpace functionOnContactZero(const AbstractDomain& domain)
55  {  {
56    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
57    return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());    return FunctionSpace(domain,temp.getFunctionOnContactZeroCode());
58  }  }
59    
60    FunctionSpace reducedFunctionOnContactZero(const AbstractDomain& domain)
61    {
62      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
63      return FunctionSpace(domain,temp.getReducedFunctionOnContactZeroCode());
64    }
65    
66  FunctionSpace functionOnContactOne(const AbstractDomain& domain)  FunctionSpace functionOnContactOne(const AbstractDomain& domain)
67  {  {
# Line 47  FunctionSpace functionOnContactOne(const Line 69  FunctionSpace functionOnContactOne(const
69    return FunctionSpace(domain,temp.getFunctionOnContactOneCode());    return FunctionSpace(domain,temp.getFunctionOnContactOneCode());
70  }  }
71    
72    FunctionSpace reducedFunctionOnContactOne(const AbstractDomain& domain)
73    {
74      const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);
75      return FunctionSpace(domain,temp.getReducedFunctionOnContactOneCode());
76    }
77    
78  FunctionSpace solution(const AbstractDomain& domain)  FunctionSpace solution(const AbstractDomain& domain)
79  {  {
80    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);    const AbstractContinuousDomain& temp=AbstractContinuousDomain::asAbstractContinuousDomain(domain);

Legend:
Removed from v.82  
changed lines
  Added in v.1062

  ViewVC Help
Powered by ViewVC 1.1.26