This file is indexed.

/usr/include/trilinos/Pike_StatusTest.hpp is in libtrilinos-pike-dev 12.4.2-2.

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
#ifndef PIKE_STATUS_TEST_HPP
#define PIKE_STATUS_TEST_HPP

#include "Pike_BlackBox_config.hpp"
#include "Teuchos_VerboseObject.hpp"
#include "Teuchos_Describable.hpp"
#include <iostream>

namespace pike {

  static const int defaultIndentation = 3;
  static const int statusIndentation = 13;

  class Solver;

  //! The status of a solver
  enum SolveStatus {
    //! The solver is converged.  This triggers termination of the solver.
    CONVERGED,
    //! The solver has failed.  This triggers termination of the solver.
    FAILED,
    //! The solver is unconverged.  Solver can continue.
    UNCONVERGED,
    //! The status has not been checked.  Unknown state.
    UNCHECKED
  };

  enum CheckType {
    //! Check all status tests.
    COMPLETE,
    //! Only check critical tests and ignore optional or potentially costly tests.
    MINIMAL,
    //! Check is disabled.
    NONE
  };

  /** Pure virtual interface for a specifying a stopping criteria for the coupled system (strategy design pattern). */
  class StatusTest : public Teuchos::Describable,
		     public Teuchos::VerboseObject<pike::StatusTest> {

  public:

    /** \brief Test the stopping criteria.

	The test can (and should, if possible) be skipped if 
	checkType is "None".  If the test is skipped, then
	the status should be set to NOX::StatusTest::Unevaluated.
    */
    virtual pike::SolveStatus checkStatus(const pike::Solver& solver, const CheckType checkType = pike::COMPLETE) = 0;
    
    //! Return the result of the most recent checkStatus() call.
    virtual pike::SolveStatus getStatus() const = 0;
    
    //! Reset the status test to reuse in another solve.
    virtual void reset() = 0;

  };
  
  /** \brief Prints the status test to the ostream
      \relates StatusTest
   */
  std::ostream& operator<<(std::ostream& os, const pike::StatusTest& test);

  std::string statusToString(const pike::SolveStatus& s);
  
}

#endif