Amesos Package Browser (Single Doxygen Collection)
Development
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
SuiteSparse
PARAKLETE
Source
amesos_paraklete_finish.c
Go to the documentation of this file.
1
/* ========================================================================== */
2
/* === paraklete_finish ===================================================== */
3
/* ========================================================================== */
4
5
#include "
amesos_paraklete_decl.h
"
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
16
void
amesos_paraklete_finish
(
paraklete_common
*Common)
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
cholmod_common_struct
Definition:
amesos_cholmod_core.h:393
Int
#define Int
Definition:
amesos_amd_internal.h:190
cholmod_common_struct::memory_inuse
size_t memory_inuse
Definition:
amesos_cholmod_core.h:883
amesos_paraklete_decl.h
cholmod_common_struct::malloc_count
size_t malloc_count
Definition:
amesos_cholmod_core.h:881
CHOLMOD
#define CHOLMOD(name)
Definition:
amesos_cholmod_internal.h:272
NULL
#define NULL
Definition:
amesos_amd_internal.h:153
paraklete_common_struct::cm
cholmod_common cm
Definition:
amesos_paraklete_decl.h:100
ASSERT
#define ASSERT(expression)
Definition:
amesos_amd_internal.h:331
paraklete_common_struct
Definition:
amesos_paraklete_decl.h:72
ID
#define ID
Definition:
amesos_amd_internal.h:191
finish
int CHOLMOD() finish(cholmod_common *Common)
Definition:
amesos_cholmod_common.c:325
paraklete_common_struct::file
FILE * file
Definition:
amesos_paraklete_decl.h:98
amesos_paraklete_finish
void amesos_paraklete_finish(paraklete_common *Common)
Definition:
amesos_paraklete_finish.c:16
paraklete_common_struct::myid
Int myid
Definition:
amesos_paraklete_decl.h:90
Generated on Wed Jan 11 2017 09:45:19 for Amesos Package Browser (Single Doxygen Collection) by
1.8.6