1 /*****************************************************************************
2   FILE           : $Source: /projects/higgs1/SNNS/CVS/SNNS/kernel/sources/kr_def.h,v $
3   SHORTNAME      : def.h
4   SNNS VERSION   : 4.2
5 
6   PURPOSE        : SNNS-Kernel Defaults
7   NOTES          :
8 
9   AUTHOR         : Niels Mache
10   DATE           : 01.03.90
11 
12   CHANGED BY     : Sven Doering
13   RCS VERSION    : $Revision: 2.9 $
14   LAST CHANGE    : $Date: 1998/02/25 15:26:40 $
15 
16     Copyright (c) 1990-1995  SNNS Group, IPVR, Univ. Stuttgart, FRG
17     Copyright (c) 1996-1998  SNNS Group, WSI, Univ. Tuebingen, FRG
18 
19 ******************************************************************************/
20 #ifndef KR_DEFAULTS
21 
22 #define KR_DEFAULTS
23 
24 #ifndef NULL
25 #include <stdio.h>	/*  include "stdio.h" if the NULL-pointer isn't
26 			    defined  */
27 #endif
28 
29 
30 /*  default constants for block memory allocation in # of components
31 */
32 #ifdef __BORLANDC__
33 
34 #define  UNIT_BLOCK     100
35 #define  LINK_BLOCK     500
36 #define  SITE_BLOCK     20
37 #define  NTABLE_BLOCK   50
38 #define  STABLE_BLOCK   20
39 #define  PATTERN_BLOCK  50
40 
41 #else
42 #ifdef  __ENZO__
43 
44 /* A population of networks doesn't allow to use this much memory ... */
45 
46 #define  UNIT_BLOCK     300
47 #define  LINK_BLOCK     1000
48 #define  SITE_BLOCK     20
49 #define  NTABLE_BLOCK   50
50 #define  STABLE_BLOCK   20
51 #define  PATTERN_BLOCK  200
52 
53 #else
54 
55 #define  UNIT_BLOCK     1000
56 #define  LINK_BLOCK     5000
57 #define  SITE_BLOCK     200
58 #define  NTABLE_BLOCK   500
59 #define  STABLE_BLOCK   200
60 #define  PATTERN_BLOCK  200
61 
62 #endif /*__ENZO__*/
63 #endif /*__BORLANDC__*/
64 
65 /*  Unit/Site Default Initialisations
66 */
67 
68 #define     DEF_OUT         0
69 #define     DEF_I_ACT       0
70 #define     DEF_BIAS        0
71 
72 #define     DEF_SUBNET_NO   0
73 #define     DEF_LAYER_NO    1
74 #define     DEF_POS_X       0
75 #define     DEF_POS_Y       0
76 
77 #define     DEF_POS_Z       0
78 
79 
80 #define     DEF_STYPE       UFLAG_TTYP_HIDD
81 
82 
83 /*#################################################
84 
85 GROUP: File I/O Constants
86 
87 #################################################*/
88 
89 /*  max. line length for the kernel input/output files
90 */
91 #define  MAX_LIN_LEN    250
92 #define  BEST_LINE_LEN  132
93 
94 
95 
96 #endif
97