This file is indexed.

/usr/include/ug/ts.h is in libug-dev 3.12.1-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
 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
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
/****************************************************************************/
/*                                                                          */
/* File:      ts.h                                                          */
/*                                                                          */
/* Purpose:   time-stepping scheme for (non-)linear time-dependent problems */
/*                                                                          */
/* Author:    Peter Bastian                                                 */
/*            Institut fuer Computeranwendungen III                         */
/*            Universitaet Stuttgart                                        */
/*            Pfaffenwaldring 27                                            */
/*            70569 Stuttgart                                               */
/*            email: ug@ica3.uni-stuttgart.de                               */
/*                                                                          */
/* History:   January  09, 1997  begin                                      */
/*                                                                          */
/* Remarks:                                                                 */
/*                                                                          */
/****************************************************************************/


/* RCS_ID
   $Header$
 */

/****************************************************************************/
/*                                                                          */
/* auto include mechanism and other include files                           */
/*                                                                          */
/****************************************************************************/

#ifndef __TS__
#define __TS__

#include "np.h"
#include "nls.h"
#include "assemble.h"

#include "namespace.h"

START_UGDIM_NAMESPACE

/****************************************************************************/
/*                                                                                                                                                      */
/* defines in the following order                                                                                       */
/*                                                                                                                                                      */
/*                compile time constants defining static data size (i.e. arrays)        */
/*                other constants                                                                                                       */
/*                macros                                                                                                                        */
/*                                                                                                                                                      */
/****************************************************************************/

#define T_SOLVER_CLASS_NAME "ts"

/****************************************************************************/
/*                                                                                                                                                      */
/* definition of exported data structures                                                                       */
/*                                                                                                                                                      */
/****************************************************************************/

struct np_t_solver {

  NP_NL_ASSEMBLE nlass;                      /* derived from nonlinear assemble */

  /* things to be initialized by generic init */
  VECDATA_DESC *y;                       /* solution vector                             */
  NP_T_ASSEMBLE *tass;                   /* time assemble numproc                       */
  NP_NL_SOLVER *nlsolve;                 /* nonlinear solver numproc            */
  VEC_SCALAR reduction;                      /* reduction factor per time step  */
  VEC_SCALAR abslimit;                       /* absolute limit for the defect   */

  /* functions */
  INT (*TimePreProcess)                                  /* called before first time step   */
    (struct np_t_solver *,                   /* pointer to (derived) object     */
    INT,                                         /* level                           */
    INT *);                                      /* result                          */
  INT (*TimeInit)                        /* initialize, set initial values  */
    (struct np_t_solver *,                   /* pointer to (derived) object     */
    INT,                                         /* level                           */
    INT *);                                      /* result                                      */
  INT (*TimeStep)                        /* b := b - Ax                     */
    (struct np_t_solver *,                   /* pointer to (derived) object     */
    INT,                                         /* level                           */
    INT *);                                      /* result                                      */
  INT (*TimePostProcess)                                 /* to be called after last timestep*/
    (struct np_t_solver *,                   /* pointer to (derived) object     */
    INT,                                         /* level                           */
    INT *);                                      /* result                          */
};
typedef struct np_t_solver NP_T_SOLVER;

typedef INT (*TimePreProcessProcPtr)                                         \
  (NP_T_SOLVER *, INT, INT *);
typedef INT (*TimeInitProcPtr)                                               \
  (NP_T_SOLVER *, INT, INT *);
typedef INT (*TimeStepProcPtr)                                               \
  (NP_T_SOLVER *, INT, INT *);
typedef INT (*TimePostProcessProcPtr)                                        \
  (NP_T_SOLVER *, INT, INT *);

/****************************************************************************/
/*                                                                                                                                                      */
/* definition of exported functions                                                                                     */
/*                                                                          */
/****************************************************************************/

/* default init function for tsolver num procs */
INT NPTSolverInit (NP_T_SOLVER *np, INT argc, char **argv);

/* default display function for tsolver num procs */
INT NPTSolverDisplay (NP_T_SOLVER *np);

/* default execute function for tsolver num procs */
INT NPTSolverExecute (NP_BASE *np, INT argc, char **argv);

/* init */
INT InitTSolver (void);

END_UGDIM_NAMESPACE

#endif