This file is indexed.

/usr/include/trilinos/Teko_InvModALStrategy.hpp is in libtrilinos-teko-dev 12.12.1-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/*
 * Author: Zhen Wang
 * Email: wangz@ornl.gov
 *        zhen.wang@alum.emory.edu
 */

#ifndef __Teko_ModALStrategy_hpp__
#define __Teko_ModALStrategy_hpp__

#include "Teuchos_RCP.hpp"

#include "Thyra_LinearOpBase.hpp"

#include "Teko_Utilities.hpp"
#include "Teko_InverseFactory.hpp"
#include "Teko_BlockPreconditionerFactory.hpp"

#include "Teko_ALOperator.hpp"

namespace Teko
{

namespace NS
{

class ModALPrecondState;

class InvModALStrategy
{
public:

   //! Empty constructor.
   InvModALStrategy();

   InvModALStrategy(const Teuchos::RCP<InverseFactory> & factory);

   InvModALStrategy(const Teuchos::RCP<InverseFactory> & factory,
         LinearOp & pressureMassMatrix);

   InvModALStrategy(const Teuchos::RCP<InverseFactory> & invFactA,
         const Teuchos::RCP<InverseFactory> & invFactS);

   InvModALStrategy(const Teuchos::RCP<InverseFactory> & invFactA,
         const Teuchos::RCP<InverseFactory> & invFactS,
         LinearOp & pressureMassMatrix);

   //! Destructor.
   virtual
   ~InvModALStrategy()
   {
   }

   /** Get the inverse of the \f$A_{11}p = A_{11} + \gamma B^T_1 W^{-1} B_1 \f$ block.
    *
    * \param[in] state State object for storying reusable information about
    *                  the operator A.
    *
    * \returns An (approximate) inverse of \f$A_{11}p\f$.
    */
   virtual LinearOp
   getInvA11p(BlockPreconditionerState & state) const;

   /** Get the inverse of the \f$A_{22}p = A_{22} + \gamma B^T_2 W^{-1} B_2 \f$ block.
    *
    * \param[in] state State object for storying reusable information about
    *                  the operator A.
    *
    * \returns An (approximate) inverse of \f$A_{22}p\f$.
    */
   virtual LinearOp
   getInvA22p(BlockPreconditionerState & state) const;

   /** Get the inverse of the \f$A_{33}p = A_{33} + \gamma B^T_3 W^{-1} B_3 \f$ block.
    *
    * \param[in] state State object for storying reusable information about
    *                  the operator A.
    *
    * \returns An (approximate) inverse of \f$A_{33}p\f$.
    */
   virtual LinearOp
   getInvA33p(BlockPreconditionerState & state) const;

   /** Get the inverse of the pressure Schur complement \f$ S \f$.
    *
    * \param[in] state State object for storying reusable information about
    *                  the operator A.
    *
    * \returns An (approximate) inverse of \f$S\f$.
    */
   virtual LinearOp
   getInvS(BlockPreconditionerState & state) const;

   /** This informs the strategy object to build the state associated
    * with this operator.
    *
    * \param[in] A The linear operator to be preconditioned by modified AL.
    * \param[in] state State object for storying reusable information about
    *                  the operator A.
    */
   virtual void
   buildState(const BlockedLinearOp & A, BlockPreconditionerState & state) const;

   /**
    * Initialize the state object using this blocked linear operator.
    */
   virtual void
   initializeState(const BlockedLinearOp & A, ModALPrecondState * state) const;

   /** Compute the inverses.
    *
    * \param[in] A ALOperator.
    *
    * \note This method assumes that the operators required have been constructed.
    */
   virtual void
   computeInverses(const BlockedLinearOp & A, ModALPrecondState * state) const;

   /** Set pressure mass matrix.
    *
    * \param[in] pressureMassMatrix
    *            Pressure mass matrix.
    */
   void
   setPressureMassMatrix(const LinearOp & pressureMassMatrix);

   /** Set the augmentation parameter gamma.
    *
    * \param[in] gamma
    *            Augmentation paramter.
    */
   void
   setGamma(double gamma);

   /** Tell strategy that this operator is supposed to be symmetric.
    *
    * \param[in] isSymmetric Is this operator symmetric?
    */
   virtual void
   setSymmetric(bool isSymmetric)
   {
      isSymmetric_ = isSymmetric;
   }

protected:

   // In the modified AL preconditioner, we need to two methods,
   // one for solving \f$ A_{ii}, i = 1, 2(, 3) \f$,
   // the other for solving \f$ S \f$.
   Teuchos::RCP<InverseFactory> invFactoryA_;
   Teuchos::RCP<InverseFactory> invFactoryS_;
   LinearOp pressureMassMatrix_;
   double gamma_;

   DiagonalType scaleType_;
   bool isSymmetric_;
   int dim_;
};

} // end namespace NS

} // end namespace Teko

#endif /* __Teko_ModALStrategy_hpp__ */