1 /***********************************************************************
2 *
3 *               *****   ***    ***
4 *                  *   *   *  *   *
5 *                 *     ***    ***
6 *                *     *   *  *   *
7 *               *****   ***    ***
8 *
9 * A FREE Finite Elements Analysis Program in ANSI C for the Windows &
10 * the UNIX OS.
11 *
12 * Composed and edited and copyright by
13 * Professor Dr.-Ing. Frank Rieg, University of Bayreuth, Germany
14 *
15 * eMail:
16 * frank.rieg@uni-bayreuth.de
17 * dr.frank.rieg@t-online.de
18 *
19 * V15.0  November 18 2015
20 *
21 * This program is free software; you can redistribute it and/or modify
22 * it under the terms of the GNU General Public License as published by
23 * the Free Software Foundation; either version 2, or (at your option)
24 * any later version.
25 *
26 * This program is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29 * GNU General Public License for more details.
30 *
31 * You should have received a copy of the GNU General Public License
32 * along with this program; see the file COPYING.  If not, write to
33 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
34 ***********************************************************************/
35 /***********************************************************************
36 *  z88n.h fuer UNIX und Windows
37 *  3.8.2011 Rieg
38 ***********************************************************************/
39 
40 /***********************************************************************
41 * Datentypen - double precision oder quad precision
42 ***********************************************************************/
43 #define FR_CALLOC calloc               /* calloc */
44 #define FR_SIZERW size_t               /* Size fuer fread, fwrite */
45 #define FR_CHARAY char *               /* Pointer auf char */
46 
47 #ifdef FR_XINT
48 #define FR_INT4AY int *                /* Pointer auf int         */
49 #define FR_INT4 int                    /* int                     */
50 #endif
51 
52 #ifdef FR_XLONG
53 #define FR_INT4AY long *               /* Pointer auf long        */
54 #define FR_INT4 long                   /* long                    */
55 #endif
56 
57 #ifdef FR_XLOLO
58 #define FR_INT4AY long long *          /* Pointer auf long long   */
59 #define FR_INT4 long long              /* long long               */
60 #endif
61 
62 #ifdef FR_XDOUB
63 #define FR_SQRT sqrt                   /* sqrt                    */
64 #define FR_POW pow                     /* pow                     */
65 #define FR_FABS fabs                   /* fabs                    */
66 #define FR_SIN sin                     /* sin                     */
67 #define FR_COS cos                     /* cos                     */
68 #define FR_ATAN2 atan2                 /* atan2                   */
69 #define FR_DOUBLEAY double *           /* Pointer auf double      */
70 #define FR_DOUBLE double               /* double                  */
71 #endif
72 
73 #ifdef FR_XQUAD
74 #define FR_SQRT sqrtl                  /* sqrtl                   */
75 #define FR_POW powl                    /* powl                    */
76 #define FR_FABS fabsl                  /* fabsl                   */
77 #define FR_SIN sinl                    /* sinl                    */
78 #define FR_COS cosl                    /* cosl                    */
79 #define FR_ACOS acosl                  /* acos                    */
80 #define FR_ATAN atanl                  /* atanl                   */
81 #define FR_DOUBLEAY long double *      /* Pointer auf long double */
82 #define FR_DOUBLE long double          /* long double             */
83 #endif
84 
85 #include <z88math.h>
86 
87 /***********************************************************************
88 * Icon
89 ***********************************************************************/
90 #define ICO_Z88N                       10
91 
92 /***********************************************************************
93 * Cursor
94 ***********************************************************************/
95 #define CUR_Z88N                       20
96 
97 /***********************************************************************
98 * Toolbar
99 ***********************************************************************/
100 #define BMP_Z88N                       30
101 
102 /***********************************************************************
103 * Menue-IDs
104 ***********************************************************************/
105 #define IDM_WER                        100
106 #define IDM_XIT                        110
107 #define IDM_GO                         120
108 
109 /***********************************************************************
110 * Toolbar-IDs
111 ***********************************************************************/
112 #define ITC_GO                         130
113 #define ITC_HELP                       140
114 #define ITC_XIT                        150
115 
116 /***********************************************************************
117 * Alerts
118 ***********************************************************************/
119 #define AL_NOLOG 3000                  /* kein Z88N.LOG */
120 #define AL_NODYN 3010                  /* kein Z88.DYN */
121 #define AL_WRONGDYN 3020               /* Fehler in Z88.DYN */
122 #define AL_NOMEMY 3030                 /* nicht genug Memory */
123 #define AL_NOI1 3040                   /* Fehler Oeffnen z88i1.txt */
124 #define AL_NONI 3050                   /* Fehler Oeffnen z88ni.txt */
125 #define AL_EXSUPERK 3060               /* zuviele Superknoten */
126 #define AL_EXSUPERE 3070               /* zuviele Superelemente */
127 #define AL_TOBIG1 3080                 /* Struktur > MAXSE */
128 #define AL_FEEXID 3090                 /* zu grosse Struktur erz. */
129 #define AL_NOFCD 3100                  /* Fehler in Z88.FCD */
130 #define AL_NOACROBAT 3110              /* kein PDF-Viewer */
131 
132 /***********************************************************************
133 * Texte
134 ***********************************************************************/
135 #define TX_REANI 3500                  /* Z88NI.TXT einlesen */
136 #define TX_BERJOIN 3510                /* join berechnen */
137 #define TX_BERKOOR 3520                /* Koordinaten berechnen */
138 #define TX_SUPERELE 3530               /* Superelement I */
139 #define TX_BERKOIN 3540                /* Koinzidenz berechnen */
140 #define TX_WRII1 3550                  /* Z88I1.TXT beschreiben */
141 
142 /***********************************************************************
143 * Log- Eintraege
144 ***********************************************************************/
145 #define LOG_BZ88N 4000                 /* Start Z88N */
146 #define LOG_OPENDYN 4010               /* Oeffnen Z88.DYN */
147 #define LOG_NODYN 4020                 /* kein Z88.DYN */
148 #define LOG_WRONGDYN 4030              /* Z88.DYN falsch */
149 #define LOG_MAXSE 4040                 /* MAXSE */
150 #define LOG_MAXESS 4050                /* MAXESS */
151 #define LOG_MAXKSS 4060                /* MAXKSS */
152 #define LOG_MAXAN 4070                 /* MAXAN */
153 #define LOG_MAXK 4080                  /* MAXK */
154 #define LOG_MAXE 4090                  /* MAXE */
155 #define LOG_MAXNFG 4100                /* MAXNFG */
156 #define LOG_MAXNEG 4110                /* MAXNEG */
157 #define LOG_OKDYN 4120                 /* Z88.DYN gelesen..o.k. */
158 #define LOG_ALLOCMEMY 4130             /* Memory anlegen */
159 #define LOG_ARRAYNOTOK 4140            /* Array nicht o.k. */
160 #define LOG_ARRAYOK 4150               /* Array o.k. */
161 #define LOG_SUMMEMY 4160               /* Memory in Bytes */
162 #define LOG_EXITDYN88N 4170            /* Verlassen Speicherunit DYN88N */
163 #define LOG_REANI 4180                 /* Start Leseunit RNI88 */
164 #define LOG_OPENNI 4190                /* Oeffnen Z88NI.TXT */
165 #define LOG_NONI 4200                  /* kein Z88NI.TXT */
166 #define LOG_OPENI1 4210                /* Oeffnen Z88I1.TXT */
167 #define LOG_NOI1 4220                  /* kein Z88I1.TXT */
168 #define LOG_EXSUPERK 4230              /* zuviel Superknoten */
169 #define LOG_EXSUPERE 4240              /* zuviel Superelemente */
170 #define LOG_EXITRNI88 4250             /* Verlassen RNI88 */
171 #define LOG_BERJOIN 4260               /* Berechne join */
172 #define LOG_EXITJOIN 4270              /* Exit join */
173 #define LOG_SMC188N 4280               /* Start MC188N */
174 #define LOG_SMC288N 4290               /* Start MC288N */
175 #define LOG_SMC388N 4300               /* Start MC388N */
176 #define LOG_SMC488N 4310               /* Start MC488N */
177 #define LOG_SMC588N 4320               /* Start MC588N */
178 #define LOG_SMC688N 4330               /* Start MC688N */
179 #define LOG_SMC788N 4340               /* Start MC788N */
180 #define LOG_SMC888N 4350               /* Start MC888N */
181 #define LOG_TOBIG1 4360                /* MAXSE zu klein */
182 #define LOG_BERKOIN 4370               /* Berechne Koinzidenz */
183 #define LOG_WRII1 4380                 /* Z88O1.TXT beschreiben */
184 #define LOG_FEEXID 4390                /* Struktur zu gross fuer FE */
185 #define LOG_NOFCD 4440                 /* Fehler bei Z88.FCD */
186 #define LOG_NOACROBAT 4450             /* kein PDF-Viewer */
187 
188 
189