1 /* $Id: sys.h,v 1.11 1996/01/22 01:13:28 curfman Exp curfman $ */ 2 /* 3 Provides access to a small number of system related and general utility routines. 4 */ 5 #if !defined(__SYS_PACKAGE) 6 #define __SYS_PACKAGE 7 8 #include "petsc.h" 9 10 extern int SYGetArchType(char*,int); 11 extern int SYIsort(int,int*); 12 extern int SYIsortperm(int,int*,int*); 13 extern int SYDsort(int,double*); 14 extern char *SYGetDate(); 15 extern int TrDebugLevel(int); 16 extern int TrValid(); 17 18 #define SYRANDOM_COOKIE PETSC_COOKIE+19 19 20 typedef enum { RANDOM_DEFAULT } SYRandomType; 21 22 typedef struct _SYRandom* SYRandom; 23 24 extern int SYRandomCreate(SYRandomType,SYRandom*); 25 extern int SYRandomGetValue(SYRandom,Scalar*); 26 extern int SYRandomDestroy(SYRandom); 27 28 #endif 29 30