Teko  Version of the Day
 All Classes Files Functions Variables Pages
Teko_StaticLSCStrategy.cpp
1 // @HEADER
2 // *****************************************************************************
3 // Teko: A package for block and physics based preconditioning
4 //
5 // Copyright 2010 NTESS and the Teko contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #include "NS/Teko_StaticLSCStrategy.hpp"
11 
12 #include "Thyra_DefaultDiagonalLinearOp.hpp"
13 
14 #include "Teuchos_Time.hpp"
15 
16 // Teko includes
17 #include "Teko_Utilities.hpp"
18 
19 using Teuchos::RCP;
20 using Teuchos::rcp_const_cast;
21 using Teuchos::rcp_dynamic_cast;
22 
23 namespace Teko {
24 namespace NS {
25 
26 // Staiblized constructor
27 StaticLSCStrategy::StaticLSCStrategy(const LinearOp& invF, const LinearOp& invBQBtmC,
28  const LinearOp& invD, const LinearOp& invMass)
29  : invF_(invF), invBQBtmC_(invBQBtmC), invD_(invD), invMass_(invMass) {}
30 
31 // Stable constructor
32 StaticLSCStrategy::StaticLSCStrategy(const LinearOp& invF, const LinearOp& invBQBtmC,
33  const LinearOp& invMass)
34  : invF_(invF), invBQBtmC_(invBQBtmC), invD_(Teuchos::null), invMass_(invMass) {}
35 
36 } // end namespace NS
37 } // end namespace Teko