Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

haconst.h

Go to the documentation of this file.
00001 
00017 #if !defined(HACONST_H)
00018 #define HACONST_H
00019 
00020 #ifndef True
00021 const int True = 1;
00022 const int False = 0;
00023 #endif
00024 
00025 #ifndef TRUE
00026 #define TRUE 1
00027 #endif
00028 
00029 #ifndef FALSE
00030 #define FALSE  0
00031 #endif
00032 
00033 #ifndef PI   /* Avoid Linux Warnings! */
00034 const double PI = 3.14159265358979323846;
00035 #endif
00036 
00037 const double BOHR_TO_ANG       = 0.529177249;    
00038 const double HARTREE_TO_EV     = 27.21121;       
00039 const double HARTREE_TO_KT     = 1059.642;       
00040 const double HARTREE_TO_JOULES = 4.3597482e-18;  
00041 const double AU_TO_KG          = 1.6605402e-27;  
00042 
00043 const double EV_TO_KT       = HARTREE_TO_KT/HARTREE_TO_EV;    
00044 const double AVOG_NUM       = 6.0221367e+23;  
00045 const double CAL_TO_JOULES  = 4.184;          
00046 const double PLANCK         = 6.6260755e-34;  
00047 const double LIGHT_SPEED_CM = 2.99792458e+10; 
00048 const double BOLTZ          = 1.380658e-23;   
00049 
00050 const double HARTREE_TO_KCAL=  AVOG_NUM*HARTREE_TO_JOULES/(1000.0*CAL_TO_JOULES);
00051 const double KT_300_KCAL = 300.0 * BOLTZ * AVOG_NUM/(1000.0*CAL_TO_JOULES); 
00052 
00053 typedef unsigned char Byte;
00054 typedef int Long;
00055 typedef int int_4;
00056 typedef unsigned int uint_4;
00057 typedef char int_1;
00058 typedef unsigned char uint_1;
00059 typedef short int_2;
00060   
00061 typedef int Subscript;
00062 
00063 // TNT MACROS:
00064 
00065 #define TNT_BASE_OFFSET (1)
00066 
00067 //---------------------------------------------------------------------
00068 // Define this macro if you want  TNT to ensure all refernces
00069 // are within the bounds of the array.  This encurs a run-time
00070 // overhead, of course, but is recommended while developing
00071 // code.  It can be turned off for production runs.
00072 // 
00073 //       #define TNT_BOUNDS_CHECK
00074 //---------------------------------------------------------------------
00075 //
00076 #define TNT_BOUNDS_CHECK
00077 #ifdef TNT_NO_BOUNDS_CHECK
00078 #undef TNT_BOUNDS_CHECK
00079 #endif
00080 
00081 //---------------------------------------------------------------------
00082 // Define this macro if you want to utilize matrix and vector
00083 // regions.  This is typically on, but you can save some
00084 // compilation time by turning it off.  If you do this and
00085 // attempt to use regions you will get an error message.
00086 //
00087 //       #define TNT_USE_REGIONS
00088 //---------------------------------------------------------------------
00089 //
00090 #define TNT_USE_REGIONS
00091 
00092 const double Rad2Deg =   180.0/PI;
00093 const double Deg2Rad =   PI/180.0;
00094 #define AbsFun(a)    (((a)<0)? -(a) : (a))
00095 #define MinFun(a,b)  (((a)<(b))? (a) : (b) )
00096 #define MaxFun(a,b)  (((a)>(b))? (a) : (b) )
00097 
00098 
00099 #if defined(_MSC_VER) || defined(__DECCXX) || defined(GNU)
00100 #define _fmalloc   malloc
00101 #define _ffree     free
00102 #define _fstrcmp   strcmp
00103 #define _fmemset   memset
00104 #endif
00105 
00106 #if defined(_MSC_VER)
00107 #define _fstrnicmp strnicmp
00108 #endif
00109 
00110 enum RunMode{ RUN_FOREGROUND=0, RUN_BACKGROUND=1 };  
00111 
00112 const int ItemCount = 8;
00113 const int AdvPickAtom = 0;
00114 const int AdvPickNumber = 1;
00115 const int AdvSelectCount = 2;
00116 const int AdvName        = 3;
00117 const int AdvIdent       = 4;
00118 const int AdvClass       = 5;
00119 const int AdvImage       = 6;
00120 const int AdvPickCoord   = 7;
00121 
00122 
00123 #endif /* !defined(HACONST_H) */

Generated on Tue Feb 17 02:03:04 2004 for harlem by doxygen 1.3.6