This file is indexed.

/usr/lib/petscdir/3.7.7/x86_64-linux-gnu-complex/share/petsc/saws/js/main.js is in libpetsc-complex-3.7.7-dev 3.7.7+dfsg1-2build5.

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
//this data structure is used to hold all of the solver options and matrix properties (perhaps should use two separate ones?)
var matInfo = {};

//some global boolean variables to keep track of what the user wants to display
var displayCmdOptions = true;
var displayTree       = true;
var displayMatrix     = true;
//var displayDiagram    = true;

//holds the cmd options to copy to the clipboard
var clipboardText     = "";

//holds the colors used in the diagram drawing
var colors = ["black","red","blue","green"];

//  This function is run when the page is first visited
$(document).ready(function(){

    matInfo["0"] = { //all false by default
        logstruc: false,
        symm: false,
        posdef: false,
    };

    //to start, append the first div (div0) in the table and the first pc/ksp options dropdown
    $("#results").append("<div id=\"leftPanel\" style=\"background-color:lightblue;float:left;\"> </div> <div id=\"rightPanel\" style=\"float:left;padding-left:30px;\"></div>");
    $("#leftPanel").append("<div id=\"solver0\"> </div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>");

    $("#solver0").append("<b>Root Solver Options (Matrix is <input type=\"checkbox\" id=\"symm0\">symmetric, <input type=\"checkbox\" id=\"posdef0\">positive definite, <input type=\"checkbox\" id=\"logstruc0\">block structured)</b>");//text: Solver Level: 0
    $("#solver0").append("<br><b>KSP &nbsp;</b><select id=\"ksp_type0\"></select>");
    $("#solver0").append("<br><b>PC &nbsp;&nbsp;&nbsp;</b><select id=\"pc_type0\"></select>");

    populateList("pc","0");
    populateList("ksp","0");

    $("#pc_type0").trigger("change");//display options for sub-solvers (if any)
    $("#ksp_type0").trigger("change");//just to record ksp (see listLogic.js)
    $("#symm0").trigger("change");//blur out posdef. will also set the default root pc/ksp for the first time (see events.js)

    /* $(function() { //needed for jqueryUI tool tip to override native javascript tooltip
        $(document).tooltip();
    });*/

    $("#displayCmdOptions").attr("checked",true);
    $("#displayTree").attr("checked",true);
    $("#displayMatrix").attr("checked",true);
    //$("#displayDiagram").attr("checked",true);

});