/usr/include/trilinos/ml_twogrid_analysis.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 | /* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
/* ******************************************************************** */
/* Some tools for two grid analysis. */
/* ******************************************************************** */
/* Author : Jonathan Hu (SNL) */
/* Date : September, 2001 */
/* ******************************************************************** */
#ifndef __MLTWOGRID__
#define __MLTWOGRID__
#include "ml_common.h"
#include "ml_defs.h"
#include "ml_struct.h"
#ifndef ML_CPP
#ifdef __cplusplus
extern "C" {
#endif
#endif
extern double ML_gdot_H0(ML_Operator *Amat, double *vec1, double *vec2);
extern double ML_gdot_H1(ML_Operator *Amat, double *vec1, double *vec2);
extern double ML_gdot_H2(ML_Operator *Amat, double *vec1, double *vec2);
extern double ML_GetCoarseGridConst(ML_Operator *Amat, ML_Operator *Rmat,
ML_Operator *Pmat, double *err_h);
extern double ML_GetSmoothingConst(ML_Operator *Amat, double *err_h,
ML_Smoother *sm);
/*
extern double ML_GetTwoLevelConvergenceFactor(ML_Operator *Amat,
ML_Operator *Rmat, ML_Operator *Pmat,
ML_Smoother *sm,
double *approx_soln, double *exact_soln);
*/
double ML_GetTwoLevelConvergenceFactor(ML *ml, double *approx_soln,
double *exact_soln);
#ifndef ML_CPP
#ifdef __cplusplus
}
#endif
#endif
#endif /*ifdef __MLTWOGRID__*/
|