ParMooN
 All Classes Functions Variables Friends Pages
amg_low.h
1 /****************************************************************************/
2 /* */
3 /* File: amg_low.c */
4 /* */
5 /* Purpose: handlers, memory management for amg */
6 /* */
7 /* Author: Peter Bastian */
8 /* Institut fuer Computeranwendungen III */
9 /* Universitaet Stuttgart */
10 /* Pfaffenwaldring 27 */
11 /* 70550 Stuttgart */
12 /* email: peter@ica3.uni-stuttgart.de */
13 /* phone: 0049-(0)711-685-7003 */
14 /* fax : 0049-(0)711-685-7000 */
15 /* */
16 /* History: 28 Jan 1996 Begin */
17 /* 02 Apr 1996 new memory allocation strategy */
18 /* 30 Sep 1997 redesign */
19 /* */
20 /* Remarks: */
21 /* */
22 /****************************************************************************/
23 
24 /* RCS_ID
25 $Header: /homes/matthies/ARCHIVE_MooNMD/MooNMD/include/AMG/amg_low.h,v 1.2 2003/03/13 10:09:56 matthies Exp $
26 */
27 
28 /****************************************************************************/
29 /* */
30 /* auto include mechanism and other include files */
31 /* */
32 /****************************************************************************/
33 
34 #ifndef __AMGLOW__
35 #define __AMGLOW__
36 
37 #include "amg_header.h"
38 
39 /****************************************************************************/
40 /* */
41 /* defines in the following order */
42 /* */
43 /* compile time constants defining static data size (i.e. arrays) */
44 /* other constants */
45 /* macros */
46 /* */
47 /****************************************************************************/
48 
49 /****************************************************************************/
50 /******** typedefs ******************************************************/
51 /****************************************************************************/
52 
53 typedef void (*AMG_PrintFuncPtr) (char *);
54 typedef void * (*AMG_MallocFuncPtr) (size_t);
55 
56 /****************************************************************************/
57 /******** management functions *********************************************/
58 /****************************************************************************/
59 
60 /* string i/o */
61 int AMG_InstallPrintHandler (AMG_PrintFuncPtr print);
62 int AMG_Print (char *s);
63 int AMG_RedirectToFile (char *name);
64 int AMG_RedirectToScreen (void);
65 
66 /* sp internal memory handling */
67 int AMG_InstallMallocHandler (AMG_MallocFuncPtr mall);
68 void *AMG_Malloc (size_t);
69 
70 #endif