Amesos Package Browser (Single Doxygen Collection) Development
amesos_paraklete_start.c
Go to the documentation of this file.
00001 /* ========================================================================== */
00002 /* === paraklete_start ====================================================== */
00003 /* ========================================================================== */
00004 
00005 #include "amesos_paraklete_decl.h"
00006 
00007 /* paraklete_start (nproc, myid, Common) must be called by all processes prior
00008  * to using any PARAKLETE or CHOLMOD functions.
00009  *
00010  * Normally, the nproc and myid inputs to this function are from here:
00011  *
00012  *   MPI_Comm_size (MPI_COMM_WORLD, &nproc) ;
00013  *   MPI_Comm_rank (MPI_COMM_WORLD, &myid) ;
00014  *
00015  * PARAKLETE version 0.3: parallel sparse LU factorization.  Nov 13, 2007
00016  * Copyright (C) 2007, Univ. of Florida.  Author: Timothy A. Davis
00017  * See License.txt for the Version 2.1 of the GNU Lesser General Public License
00018  * http://www.cise.ufl.edu/research/sparse
00019  */
00020 
00021 void amesos_paraklete_start (Int nproc, Int myid, paraklete_common *Common)
00022 {
00023     cholmod_common *cm ;
00024     cm = &(Common->cm) ;
00025     CHOLMOD (start) (cm) ;
00026     PK_DEBUG_INIT ("pk", cm) ;
00027     Common->nproc = nproc ;
00028     Common->nleaves = 32 ;
00029     Common->myid = myid ;
00030     Common->file = NULL ;
00031     cm->print = 1 ;
00032     cm->precise = TRUE ;
00033     Common->tol_diag = 0.01 ;
00034     Common->tol_offdiag = 1.0 ;
00035     Common->growth = 2. ;
00036     Common->dump = 0 ;
00037     KLU_defaults (&(Common->km)) ;
00038     Common->km.btf = 0 ;
00039 }
00040 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines