/[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/escript/src/Data/FunctionSpaceFactory.cpp revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC trunk/escript/src/FunctionSpaceFactory.cpp revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 1  Line 1 
1  /*  
2   ******************************************************************************  /* $Id$ */
3   *                                                                            *  
4   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *  /*******************************************************
5   *                                                                            *   *
6   * This software is the property of ACcESS. No part of this code              *   *           Copyright 2003-2007 by ACceSS MNRF
7   * may be copied in any form or by any means without the expressed written    *   *       Copyright 2007 by University of Queensland
8   * consent of ACcESS.  Copying, use or modification of this software          *   *
9   * by any unauthorised person is illegal unless that person has a software    *   *                http://esscc.uq.edu.au
10   * license agreement with ACcESS.                                             *   *        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  #include "escript/Data/FunctionSpace.h"   *******************************************************/
15  #include "escript/Data/FunctionSpaceFactory.h"  
16  #include "escript/Data/AbstractContinuousDomain.h"  #include "FunctionSpaceFactory.h"
17    #include "AbstractContinuousDomain.h"
18    
19  namespace escript {  namespace escript {
20    
# Line 22  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 29  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 47  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.155  
changed lines
  Added in v.1388

  ViewVC Help
Powered by ViewVC 1.1.26