This file is indexed.

/usr/include/trilinos/snl_fei_tester.hpp is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.

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
/*--------------------------------------------------------------------*/
/*    Copyright 2005 Sandia Corporation.                              */
/*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
/*    non-exclusive license for use of this work by or on behalf      */
/*    of the U.S. Government.  Export of this program may require     */
/*    a license from the United States Government.                    */
/*--------------------------------------------------------------------*/

#ifndef _snl_fei_tester_h_
#define _snl_fei_tester_h_

#include <fei_macros.hpp>
#include <fei_mpi.h>
#include <fei_SharedPtr.hpp>

#include <test_utils/feitester.hpp>
#include <test_utils/DataReader.hpp>

#include <fei_fwd.hpp>

class snl_fei_tester : public feitester {
 public:
  snl_fei_tester(fei::SharedPtr<DataReader> data_reader,
		 MPI_Comm comm, int localProc, int numProcs);
  ~snl_fei_tester();

  const char* getName()
    {
      static const char name[] = "snl_fei_tester";
      return((const char*)name);
    }

  int testInitialization();

  int testLoading();

  int testSolve();

  int testCheckResult();

  void dumpMatrixFiles();

  void setParameter(const char* param);

 private:
  void defineFieldsAndIDTypes();
  int initElemBlocks();
  int loadElemBlocks();
  int initConstraints();
  int loadConstraints();
  void definePattern(ElemBlock& eb, int& patternID);
  int createLibraryInstance(const char* solverName);

  int save_block_node_soln(DataReader& data, fei::Vector* vec,
			   const char* solnFileName, int numProcs,
			   int localProc, int solveCounter);

  int save_block_elem_soln(DataReader& data, fei::Vector* vec,
			   const char* solnFileName,
			   int numProcs, int localProc, int solveCounter);

  int save_multiplier_soln(DataReader& data, fei::Vector* vec,
			   const char* solnFileName,
			   int numProcs, int localProc, int solveCounter);

  int checkSolution(int localProc, int numProcs,
		  const char* solnFileName, const char* checkFileName,
		  const char* extension, int solveCounter);

  MPI_Comm comm_;

  fei::SharedPtr<fei::Factory> factory_;

  fei::SharedPtr<fei::VectorSpace> vecSpace_;
  fei::SharedPtr<fei::MatrixGraph> matrixGraph_;

  fei::SharedPtr<fei::Matrix> A_;
  fei::SharedPtr<fei::Vector> x_;
  fei::SharedPtr<fei::Vector> b_;

  fei::SharedPtr<fei::LinearSystem> linSys_;

  LinearSystemCore* linSysCore_;
  FiniteElementData* feData_;

  fei::SharedPtr<DataReader> data_;

  std::vector<int> idTypes_;
  int numPatterns_;
  int nodeTypeOffset_, elemTypeOffset_, constraintTypeOffset_;

  int localProc_, numProcs_;
};

#endif // _snl_fei_tester_h_