ifp_c_wrappers.h

00001 /*@HEADER
00002 // ***********************************************************************
00003 // 
00004 //       Ifpack: Object-Oriented Algebraic Preconditioner Package
00005 //                 Copyright (2002) Sandia Corporation
00006 // 
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 // 
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //  
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //  
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00025 // 
00026 // ***********************************************************************
00027 //@HEADER
00028 */
00029 
00030 #ifndef _IFP_C_WRAPPER_H_
00031 #define _IFP_C_WRAPPER_H_
00032 
00033 #define IFP_DENSE   0
00034 #define IFP_SPARSE  1
00035 
00036 #define IFP_NONE    0
00037 #define IFP_BJACOBI     1
00038 #define IFP_BSOR    2
00039 #define IFP_BSSOR   3
00040 #define IFP_BILUK   4
00041 
00042 #define IFP_LU      1
00043 #define IFP_INVERSE     2
00044 #define IFP_SVD         3
00045 #define IFP_DIAG    10
00046 #define IFP_SOR         12
00047 #define IFP_SSOR    13
00048 
00049 #ifdef __cplusplus
00050 extern "C" {
00051 #endif
00052 
00053 void ifp_blockmatrix(
00054   void    **bmat,
00055   int     n,
00056   double  *a,
00057   int     *ja,
00058   int     *ia,
00059   int     nb,
00060   int     *kvst,
00061   int     type);
00062 
00063 void ifp_freeblockmatrix(
00064         void    *bmat);
00065 
00066 void ifp_preconditioner(
00067         void    **precon,
00068   const void    *bmat,
00069   const int     global,
00070   const double  gparam1,
00071   const double  gparam2,
00072   const int     local,
00073   const double  lparam1,
00074   const double  lparam2);
00075 
00076 void ifp_freepreconditioner( void *precon);
00077 
00078 void ifp_freebiluk( void *precon);
00079 
00080 void ifp_matvec(
00081   void    *bmat,
00082   int     nr,
00083   int     nc,
00084   const double *u,
00085   int     ldu,
00086   double *v,
00087   int     ldv);
00088 
00089 void ifp_apply(
00090   void    *prec,
00091   int     nr,
00092   int     nc,
00093   const double *u,
00094   int     ldu,
00095   double *v,
00096   int     ldv);
00097 
00098 void ifp_BJacobi_condest(void *M);
00099 
00100 void ifp_biluk_condest(void *M);
00101 void ifp_biluk_stats(void *M);
00102 
00103 #ifdef __cplusplus
00104 }
00105 #endif
00106 
00107 #endif /* _IFP_C_WRAPPER_H_ */

Generated on Tue Oct 20 12:48:53 2009 for IFPACK by doxygen 1.4.7