Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GlobalLinSysDirectStaticCond.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File GlobalLinSys.h
4 //
5 // For more information, please see: http://www.nektar.info
6 //
7 // The MIT License
8 //
9 // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
10 // Department of Aeronautics, Imperial College London (UK), and Scientific
11 // Computing and Imaging Institute, University of Utah (USA).
12 //
13 // License for the specific language governing rights and limitations under
14 // Permission is hereby granted, free of charge, to any person obtaining a
15 // copy of this software and associated documentation files (the "Software"),
16 // to deal in the Software without restriction, including without limitation
17 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
18 // and/or sell copies of the Software, and to permit persons to whom the
19 // Software is furnished to do so, subject to the following conditions:
20 //
21 // The above copyright notice and this permission notice shall be included
22 // in all copies or substantial portions of the Software.
23 //
24 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
30 // DEALINGS IN THE SOFTWARE.
31 //
32 // Description: GlobalLinSysStaticCond header
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 #ifndef NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSDIRECTSTATICCOND_H
36 #define NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSDIRECTSTATICCOND_H
37 
41 
42 namespace Nektar
43 {
44  namespace MultiRegions
45  {
46  // Forward declarations
47  class ExpList;
49 
50  typedef boost::shared_ptr<GlobalLinSysDirectStaticCond>
52 
53  /// A global linear system.
55  virtual public GlobalLinSysStaticCond
56  {
57  public:
58  /// Creates an instance of this class
60  const GlobalLinSysKey &pLinSysKey,
61  const boost::weak_ptr<ExpList> &pExpList,
62  const boost::shared_ptr<AssemblyMap> &pLocToGloMap)
63  {
66  ::AllocateSharedPtr(pLinSysKey, pExpList, pLocToGloMap);
67  ret->InitObject();
68  return ret;
69  }
70 
71  /// Name of class
72  MULTI_REGIONS_EXPORT static std::string className;
73  static std::string className2;
74 
75  /// Constructor for full direct matrix solve.
77  const GlobalLinSysKey &mkey,
78  const boost::weak_ptr<ExpList> &pExpList,
79  const boost::shared_ptr<AssemblyMap> &locToGloMap);
80 
81  /// Constructor for full direct matrix solve.
83  const GlobalLinSysKey &mkey,
84  const boost::weak_ptr<ExpList> &pExpList,
85  const DNekScalBlkMatSharedPtr pSchurCompl,
86  const DNekScalBlkMatSharedPtr pBinvD,
87  const DNekScalBlkMatSharedPtr pC,
88  const DNekScalBlkMatSharedPtr pInvD,
89  const boost::shared_ptr<AssemblyMap> &locToGloMap);
90 
92 
93  protected:
94  virtual void v_AssembleSchurComplement(
95  boost::shared_ptr<AssemblyMap> pLocToGloMap);
97  const GlobalLinSysKey &mkey,
98  const boost::weak_ptr<ExpList> &pExpList,
99  const DNekScalBlkMatSharedPtr pSchurCompl,
100  const DNekScalBlkMatSharedPtr pBinvD,
101  const DNekScalBlkMatSharedPtr pC,
102  const DNekScalBlkMatSharedPtr pInvD,
103  const boost::shared_ptr<AssemblyMap> &l2gMap);
104 
105  private:
106  /// Matrix Storage type for known matrices
108  const boost::shared_ptr<AssemblyMap>& locToGloMap);
109  };
110  }
111 }
112 
113 #endif