/usr/include/trilinos/ml_gridfunc.h is in libtrilinos-ml-dev 12.10.1-3.
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 | /* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
/* ******************************************************************** */
/* Declaration of the Grid and its access functions data structure */
/* ******************************************************************** */
/* Author : Charles Tong (LLNL) and Raymond Tuminaro (SNL) */
/* Date : March, 1999 */
/* ******************************************************************** */
#ifndef __MLGRIDFUNC__
#define __MLGRIDFUNC__
#include "ml_common.h"
#include "ml_defs.h"
#include "ml_memory.h"
typedef struct ML_GridFunc_Struct ML_GridFunc;
/* ******************************************************************** */
/* definition of the data structure for Grid and its access functions */
/* -------------------------------------------------------------------- */
struct ML_GridFunc_Struct
{
int ML_id;
int ML_MaxElmntVert;
int (*USR_grid_get_dimension)( void * );
int (*USR_grid_get_nvertices)( void * );
int (*USR_grid_get_nelements)( void * );
ml_big_int (*USR_grid_get_element_global_num)( void *, int );
int (*USR_grid_get_element_nvertices)( void *, int );
int (*USR_grid_get_element_vlist)( void *, int, int * );
int (*USR_grid_get_vertex_global_num)( void *, int );
int (*USR_grid_get_vertex_coordinate)( void *, int, double *);
int (*USR_compute_basis_coefficients)(void*,int,double*,int,double*,int*);
int (*USR_grid_get_element_volumes)(void*,int,int*,double*);
int (*USR_grid_get_element_matrix)(void*,int,double**);
int (*USR_grid_get_element_nullspace)(void*,int,double*);
};
/* ******************************************************************** */
/* definition of the functions */
/* -------------------------------------------------------------------- */
#ifndef ML_CPP
#ifdef __cplusplus
extern "C"
{
#endif
#endif
extern int ML_GridFunc_Create( ML_GridFunc ** );
extern int ML_GridFunc_Destroy( ML_GridFunc ** );
extern int ML_GridFunc_Check( ML_GridFunc * );
extern int ML_GridFunc_Set_MaxVertPerElmnt(ML_GridFunc *, int);
#ifdef NOTSTRICT_PROTO
extern int ML_GridFunc_Set_Function(ML_GridFunc *, int, int (*func)());
#endif
extern int ML_GridFunc_Set_GetDimension(ML_GridFunc *, int (*func)(void *));
extern int ML_GridFunc_Set_GetNVert(ML_GridFunc *, int (*func)(void *));
extern int ML_GridFunc_Set_GetNElmnts(ML_GridFunc *, int (*func)(void *));
extern int ML_GridFunc_Set_GetElmntGlobalNum(ML_GridFunc*,ml_big_int(*func)(void *, int));
extern int ML_GridFunc_Set_GetElmntNVert(ML_GridFunc*,int(*func)(void *, int));
extern int ML_GridFunc_Set_GetElmntVertList(ML_GridFunc *, int (*func)(void *, int, int *));
extern int ML_GridFunc_Set_GetVertGlobalNum(ML_GridFunc*,int (*func)(void *, int));
extern int ML_GridFunc_Set_GetVertCoordinate(ML_GridFunc*,int (*func)(void *, int, double *));
extern int ML_GridFunc_Set_ComputeBasisCoef(ML_GridFunc *, int (*func)(void*,int,double*,int,double*,int*));
extern int ML_GridFunc_Set_GetElmntVolumes(ML_GridFunc *, int (*func)(void*,int,int*,double*));
extern int ML_GridFunc_Set_GetElmntMatrix(ML_GridFunc *, int (*func)(void*,int,double**));
extern int ML_GridFunc_Set_GetElmntNullSpace(ML_GridFunc*,int (*func)(void*,int,double*));
int ML_compute_basis_coefficients3D(void *grid, double *coord,
int ncoord, double *coefs, int *coef_ptr);
int ML_compute_basis_coefficients2D(void *grid, double *coord,
int ncoord, double *coefs, int *coef_ptr);
#ifndef ML_CPP
#ifdef __cplusplus
}
#endif
#endif
#endif
|