Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
amesos_paraklete_start.c
Go to the documentation of this file.
1 /* ========================================================================== */
2 /* === paraklete_start ====================================================== */
3 /* ========================================================================== */
4 
6 
7 /* paraklete_start (nproc, myid, Common) must be called by all processes prior
8  * to using any PARAKLETE or CHOLMOD functions.
9  *
10  * Normally, the nproc and myid inputs to this function are from here:
11  *
12  * MPI_Comm_size (MPI_COMM_WORLD, &nproc) ;
13  * MPI_Comm_rank (MPI_COMM_WORLD, &myid) ;
14  *
15  * PARAKLETE version 0.3: parallel sparse LU factorization. Nov 13, 2007
16  * Copyright (C) 2007, Univ. of Florida. Author: Timothy A. Davis
17  * See License.txt for the Version 2.1 of the GNU Lesser General Public License
18  * http://www.cise.ufl.edu/research/sparse
19  */
20 
21 void amesos_paraklete_start (Int nproc, Int myid, paraklete_common *Common)
22 {
23  cholmod_common *cm ;
24  cm = &(Common->cm) ;
25  CHOLMOD (start) (cm) ;
26  PK_DEBUG_INIT ("pk", cm) ;
27  Common->nproc = nproc ;
28  Common->nleaves = 32 ;
29  Common->myid = myid ;
30  Common->file = NULL ;
31  cm->print = 1 ;
32  cm->precise = TRUE ;
33  Common->tol_diag = 0.01 ;
34  Common->tol_offdiag = 1.0 ;
35  Common->growth = 2. ;
36  Common->dump = 0 ;
37  KLU_defaults (&(Common->km)) ;
38  Common->km.btf = 0 ;
39 }
40 
#define Int
#define KLU_defaults
#define CHOLMOD(name)
#define NULL
int CHOLMOD() start(cholmod_common *Common)
#define PK_DEBUG_INIT(s, Common)
void amesos_paraklete_start(Int nproc, Int myid, paraklete_common *Common)
#define TRUE