ParMooN
 All Classes Functions Variables Friends Pages
amg_header.h
1 /****************************************************************************/
2 /* */
3 /* File: amg_header.c */
4 /* */
5 /* Purpose: general header for common things (return values, misc..) */
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_header.h,v 1.1.1.1 2001/01/12 12:55:18 matthies Exp $
26 */
27 
28 /****************************************************************************/
29 /* */
30 /* auto include mechanism and other include files */
31 /* */
32 /****************************************************************************/
33 
34 #ifndef __AMGHEADER__
35 #define __AMGHEADER__
36 
37 /****************************************************************************/
38 /* */
39 /* defines in the following order */
40 /* */
41 /* compile time constants defining static data size (i.e. arrays) */
42 /* other constants */
43 /* macros */
44 /* */
45 /****************************************************************************/
46 
47 /* general sizes */
48 #define AMG_NAME_SIZE 32 /* for names of objects */
49 
50 /* general return values*/
51 #define AMG_OK 0 /* operation succeded */
52 #define AMG_NULL NULL/* null pointer */
53 #define AMG_FATAL 9999/* fatal error */
54 
55 /* misc macros */
56 #define AMG_MIN(x,y) (((x)<(y)) ? (x) : (y))
57 #define AMG_MAX(x,y) (((x)>(y)) ? (x) : (y))
58 /* #define AMG_ABS(x) (((x)>=0) ? (x) : (-x))*/
59 #define AMG_ABS(i) (((i)<0) ? (-(i)) : (i))
60 
61 #endif
62