Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
amesos_paraklete_finish.c
Go to the documentation of this file.
1 /* ========================================================================== */
2 /* === paraklete_finish ===================================================== */
3 /* ========================================================================== */
4 
6 
7 /* paraklete_finish (Common) must be called by all processes after
8  * using any PARAKLETE and/or CHOLMOD functions.
9  *
10  * PARAKLETE version 0.3: parallel sparse LU factorization. Nov 13, 2007
11  * Copyright (C) 2007, Univ. of Florida. Author: Timothy A. Davis
12  * See License.txt for the Version 2.1 of the GNU Lesser General Public License
13  * http://www.cise.ufl.edu/research/sparse
14  */
15 
17 {
18  cholmod_common *cm ;
19  cm = &(Common->cm) ;
20  CHOLMOD (finish) (cm) ;
21  if (cm->malloc_count != 0 || cm->memory_inuse != 0)
22  {
23  printf ("%% proc "ID" finish: "ID" "ID"\n", Common->myid,
24  (Int) (cm->malloc_count), (Int) (cm->memory_inuse)) ;
25  }
26  ASSERT (cm->malloc_count == 0 && cm->memory_inuse == 0) ;
27  if (Common->file != NULL)
28  {
29  fclose (Common->file) ;
30  }
31  Common->file = NULL ;
32 }
33 
#define Int
#define CHOLMOD(name)
#define NULL
#define ASSERT(expression)
#define ID
int CHOLMOD() finish(cholmod_common *Common)
void amesos_paraklete_finish(paraklete_common *Common)