/usr/include/trilinos/ml_mapper.h is in libtrilinos-ml-dev 12.4.2-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 | /* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
/* ******************************************************************** */
/* Declaration of the ML_Mapper structure */
/* ******************************************************************** */
/* Author : Charles Tong (LLNL) and Raymond Tuminaro (SNL) */
/* Date : March, 1999 */
/* ******************************************************************** */
#ifndef __MLMAPPERH__
#define __MLMAPPERH__
#include "ml_common.h"
#include "ml_defs.h"
#include "ml_memory.h"
#ifdef WKC
#include <Epetra_Comm.h>
#include <Epetra_MultiVector.h>
#endif
typedef struct ML_Mapper_Struct ML_Mapper;
/* ******************************************************************** */
/* data definition for the ML_Mapper Class */
/* ******************************************************************** */
/* -------------------------------------------------------------------- */
/* This data structure stores a mapping function that maps unknowns */
/* between the grid and equation spaces (One is instantiated for grid */
/* to equation space mapping, and the other for equation to grid space */
/* mapping. */
/* -------------------------------------------------------------------- */
struct ML_Mapper_Struct {
int ML_id;
void *data;
int inlength, outlength;
int (*map)(void*, double *, double *);
};
/* ******************************************************************** */
/* function for accessing the ML_Mapper Class */
/* ******************************************************************** */
#ifndef ML_CPP
#ifdef __cplusplus
extern "C" {
#endif
#endif
extern int ML_Mapper_Create(ML_Mapper **);
extern int ML_Mapper_Init(ML_Mapper *);
extern int ML_Mapper_Destroy(ML_Mapper **);
extern int ML_Mapper_Clean(ML_Mapper *);
extern int ML_Mapper_Check(ML_Mapper *);
extern int ML_Mapper_SetFunc(ML_Mapper*,int,int,
int (*func)(void*,double*,double*));
extern int ML_Mapper_SetData(ML_Mapper*,void*);
extern int ML_Mapper_GetLength(ML_Mapper*,int*,int*);
extern int ML_Mapper_Apply(ML_Mapper *, double *, double *);
/* WKC -- Added header for Epetra stuff */
#ifdef WKC
extern int ML_Mapper_Apply(ML_Mapper *, Epetra_MultiVector & , Epetra_MultiVector &);
#endif
#ifndef ML_CPP
#ifdef __cplusplus
}
#endif
#endif
#endif
|