Nektar++
GlobalLinSysXxtStaticCond.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File: GlobalLinSysXxtStaticCond.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 // Permission is hereby granted, free of charge, to any person obtaining a
14 // copy of this software and associated documentation files (the "Software"),
15 // to deal in the Software without restriction, including without limitation
16 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 // and/or sell copies of the Software, and to permit persons to whom the
18 // Software is furnished to do so, subject to the following conditions:
19 //
20 // The above copyright notice and this permission notice shall be included
21 // in all copies or substantial portions of the Software.
22 //
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 // DEALINGS IN THE SOFTWARE.
30 //
31 // Description: GlobalLinSysXxtStaticCond header
32 //
33 ///////////////////////////////////////////////////////////////////////////////
34 
35 #ifndef NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSXXTSTATICCOND_H
36 #define NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSXXTSTATICCOND_H
37 
43 
44 namespace Nektar
45 {
46 namespace MultiRegions
47 {
48 // Forward declarations
49 class AssemblyMapCG;
50 class ExpList;
51 class GlobalLinSysXxtStaticCond;
52 
53 typedef std::shared_ptr<GlobalLinSysXxtStaticCond>
55 
56 /// A global linear system.
58  virtual public GlobalLinSysStaticCond
59 {
60 public:
61  /// Creates an instance of this class
63  const GlobalLinSysKey &pLinSysKey,
64  const std::weak_ptr<ExpList> &pExpList,
65  const std::shared_ptr<AssemblyMap> &pLocToGloMap)
66  {
69  pLinSysKey, pExpList, pLocToGloMap);
70  p->InitObject();
71  return p;
72  }
73 
74  /// Name of class
75  static std::string className;
76  static std::string className2;
77 
78  /// Constructor for full direct matrix solve.
80  const GlobalLinSysKey &mkey, const std::weak_ptr<ExpList> &pExpList,
81  const std::shared_ptr<AssemblyMap> &locToGloMap);
82 
83  /// Constructor for full direct matrix solve.
85  const GlobalLinSysKey &mkey, const std::weak_ptr<ExpList> &pExpList,
86  const DNekScalBlkMatSharedPtr pSchurCompl,
87  const DNekScalBlkMatSharedPtr pBinvD, const DNekScalBlkMatSharedPtr pC,
88  const DNekScalBlkMatSharedPtr pInvD,
89  const std::shared_ptr<AssemblyMap> &locToGloMap);
90 
92 
93 protected:
94  void CreateMap(const std::shared_ptr<AssemblyMap> &pLocToGloMap);
95 
96  /// Assemble the Schur complement matrix.
97  virtual void v_AssembleSchurComplement(
98  std::shared_ptr<AssemblyMap> locToGloMap) override;
99 
101  const GlobalLinSysKey &mkey, const std::weak_ptr<ExpList> &pExpList,
102  const DNekScalBlkMatSharedPtr pSchurCompl,
103  const DNekScalBlkMatSharedPtr pBinvD, const DNekScalBlkMatSharedPtr pC,
104  const DNekScalBlkMatSharedPtr pInvD,
105  const std::shared_ptr<AssemblyMap> &locToGloMap) override;
106 };
107 } // namespace MultiRegions
108 } // namespace Nektar
109 
110 #endif
#define MULTI_REGIONS_EXPORT
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
void CreateMap(const std::shared_ptr< AssemblyMap > &pLocToGloMap)
virtual GlobalLinSysStaticCondSharedPtr v_Recurse(const GlobalLinSysKey &mkey, const std::weak_ptr< ExpList > &pExpList, const DNekScalBlkMatSharedPtr pSchurCompl, const DNekScalBlkMatSharedPtr pBinvD, const DNekScalBlkMatSharedPtr pC, const DNekScalBlkMatSharedPtr pInvD, const std::shared_ptr< AssemblyMap > &locToGloMap) override
GlobalLinSysXxtStaticCond(const GlobalLinSysKey &mkey, const std::weak_ptr< ExpList > &pExpList, const std::shared_ptr< AssemblyMap > &locToGloMap)
Constructor for full direct matrix solve.
virtual void v_AssembleSchurComplement(std::shared_ptr< AssemblyMap > locToGloMap) override
Assemble the Schur complement matrix.
static GlobalLinSysSharedPtr create(const GlobalLinSysKey &pLinSysKey, const std::weak_ptr< ExpList > &pExpList, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Creates an instance of this class.
std::shared_ptr< GlobalLinSysXxtStaticCond > GlobalLinSysXxtStaticCondSharedPtr
std::shared_ptr< GlobalLinSys > GlobalLinSysSharedPtr
Pointer to a GlobalLinSys object.
Definition: GlobalLinSys.h:50
std::shared_ptr< GlobalLinSysStaticCond > GlobalLinSysStaticCondSharedPtr
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:2
std::shared_ptr< DNekScalBlkMat > DNekScalBlkMatSharedPtr
Definition: NekTypeDefs.hpp:79