prototypes.h

Go to the documentation of this file.
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 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 void read_hb(char *data_file,
00034         int *N_global, int *n_nonzeros, 
00035         double **val, int **bindx,
00036         double **x, double **b, double **bt, double **xexact);
00037 
00038 void read_coo(char *data_file, int *proc_config,
00039         int *N_global, int *n_nonzeros,
00040         double **val, int **bindx,
00041         double **x, double **b, double **xexact);
00042 
00043 
00044 void distrib_msr_matrix(int *proc_config,
00045         int *N_global, int *n_nonzeros, 
00046            int *N_update, int **update, 
00047         double **val, int **bindx,
00048         double **x, double **b, double **bt, double **xexact);
00049 
00050 void distrib_vbr_matrix(int *proc_config,
00051         int *N_global, int *N_blk_global, 
00052            int *n_nonzeros,  int *n_blk_nonzeros,
00053            int *N_update, int **update, 
00054         double **val, int **indx, int **rpntr, int **cpntr,
00055            int **bpntr, int **bindx,
00056         double **x, double **b, double **bt, double **xexact);
00057 
00058 void create_vbr(char *part_file, int *proc_config, 
00059                 int *N_global, int *N_blk_global, 
00060                 int *n_nonzeros, int *n_blk_nonzeros,
00061                 int *N_update, int **update,
00062           int *bindx_msr, double *val_msr,
00063           double **val, int **indx, int **rpntr, int **cpntr,
00064           int **bpntr, int **bindx);
00065 
00066 double smsrres (int m, int n, 
00067         double *val, int *indx, 
00068         double *xlocal, double *x, double *b);
00069 
00070 double scscres (int isym, int m, int n, 
00071         double *val, int *indx, int *pntr,
00072         double *x, double *b);
00073 
00074 void  scscmv (int isym, int indexbase, int m, int n, 
00075         double *val, int *indx, int *pntr,
00076         double *x, double *b);
00077 
00078 double svbrres (int m, int n, int m_blk,
00079     double *val, int *indx, int *bindx, int *rpntr,
00080     int *cpntr, int *bpntrb, int *bpntre,
00081     double *x, double *b);
00082 #ifdef __cplusplus
00083 }
00084 #endif

Generated on Thu Sep 18 12:37:22 2008 for Ifpack Package Browser (Single Doxygen Collection) by doxygen 1.3.9.1