/usr/include/trilinos/ml_ggraph.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 | /* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
/* ******************************************************************** */
/* data structure to hold grid information in the form of a graph */
/* ******************************************************************** */
/* Author : Charles Tong (LLNL) */
/* Date : September, 1998 */
/* ******************************************************************** */
#ifndef __MLGRIDG__
#define __MLGRIDG__
#include <stdio.h>
/* #include <stdlib.h> */
#include "ml_common.h"
#include "ml_defs.h"
#include "ml_comm.h"
#include "ml_gridfunc.h"
#include "ml_memory.h"
#include "ml_comminfoop.h"
#include "ml_operator.h"
#include "ml_mat_formats.h"
/* ******************************************************************** */
/* definition of the grid graph structure */
/* -------------------------------------------------------------------- */
typedef struct ML_GGraph_Struct
{
int ML_id;
int Npoints, Nselected;
int ML_rank;
int *row_ptr, *col_ptr;
int send_cnt, *send_leng, *send_proc, **send_list;
int recv_cnt, *recv_leng, *recv_proc, **recv_list;
char *bdry_type;
char *vertex_state;
} ML_GGraph;
/* ******************************************************************** */
/* functions to manipulate the grid graph data structure */
/* -------------------------------------------------------------------- */
#ifndef ML_CPP
#ifdef __cplusplus
extern "C"
{
#endif
#endif
extern int ML_GGraph_Create( ML_GGraph ** );
extern int ML_GGraph_Destroy( ML_GGraph ** );
extern int ML_GGraph_Print( ML_GGraph * );
extern int ML_GGraph_Load_BdryTypes( ML_GGraph *, int , char *);
extern int ML_GGraph_Coarsen(ML_GGraph*, ML_Comm *);
extern int ML_GGraph_Gen_NodeGraph(ML_GGraph*,void*,void (*func),ML_Comm *);
extern int ML_GGraph_Get_NodeStates(ML_GGraph*, int *, char **);
extern int ML_GGraph_Gen_ElementGraph(ML_GGraph*,void*,void (*gf),ML_Comm*);
extern int ML_GGraph_Gen_Restrictor(ML_GGraph*);
extern int ML_GGraph_CheckMIS( ML_GGraph *ml_gg, ML_Comm *comm );
extern int ML_GGraph_Find_NeighborElements(int leng1, int *list1, int leng2,
int *list2, int *vlist3);
extern int ML_GGraph_LabelVertices(int, int *, int, char *, char *, int,
int *, int *, int, int **, int, int **, int *, int *,
int, int **, int *, int *, int **, int, ML_Comm *);
#ifndef ML_CPP
#ifdef __cplusplus
}
#endif
#endif
#endif
|