Ice Sheet System Model  4.18
Code documentation
Scotch.h
Go to the documentation of this file.
1 
5 #ifndef _SCOTCH_H
6 #define _SCOTCH_H
7 
8 #include "../bindings.h" /*Should always come first to avoid python's warnings*/
9 #include <stdio.h>
10 #include <string.h> /* strcasecmp */
11 #include <time.h> /* clock,time,difftime */
12 #include "../../c/main/globals.h"
13 #include "../../c/modules/modules.h"
14 #include "../../c/shared/shared.h"
15 
16 #undef __FUNCT__
17 #define __FUNCT__ "Scotch"
18 
19 /* Scotch structures and prototypes */
20 #ifdef MATLAB
21 #include "mat.h"
22 #include "mex.h"
23 #include "matrix.h"
24 
25 #define printf mexPrintf
26 #define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
27 #define malloc mxMalloc
28 #define calloc mxCalloc
29 #define realloc mxRealloc
30 #define free mxFree
31 #define exit(status) mexErrMsgTxt("exit=" #status)
32 #endif
33 
34 #endif /* _SCOTCH_H */
matrix.h
prototypes for matrix.h