IPCC  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CKNGlobal.h
Go to the documentation of this file.
1 
8 #pragma once
9 
11 #define THROW_END_EXIT(EXCEPTION_NAME) \
12  throw EXCEPTION_NAME; \
13  return
14 
16 #define FREE_MEM(pointer)\
17 if (NULL != pointer)\
18  {\
19  free(pointer); \
20  pointer = NULL; \
21  }
22 
24 #define ALLOC_WITH_NULL_INIT(pointer, data_type, data_size)\
25  pointer = NULL;\
26  pointer = (data_type*)malloc(sizeof(data_type)*data_size);\
27  if (NULL == pointer)\
28  return bRtn
29 
30 #define SHOW_SIMPLE_MSG(message)\
31 if (CKNMPIManager::IsRootRank())\
32  CKNIPCCUtility::ShowMsg(message);
33 
34 
35 #define DO_NOT_CONVERGENCE_CHECKING 999999999
36 #define MECHINE_ERROR 0.0000000000000002
37 #define GENERAL_TOLERANCE 1e-7
38 #define TOLERANE_M_10_9 1e-9
39 #define SELECTIVE_GENERAL_TOLERANCE 1e-12
40 #define DO_ORTHGONAL_TOLERANCE 1e-2
41 
42 #define ATOM_DEFAULT_INDEX -1
43 #define ORBITALS 10
44 
45 #define DEGENERATED_INDEX -1
46 
47 #ifdef _WIN32
48 #define NOMINMAX
49 #endif //_WIN32
50 
51 const unsigned long ERROR_MALLOC = 9999;
52 const unsigned long ERROR_OUT_OF_RANGE = 9998;
53 const unsigned long ERROR_WRONG_ORDER_OPERATION = 9997;
54 
55 #define UNITCELL_WRITING_BLOCK_SIZE 8
56 
57 #define GEO_OUTPUT_FILE_NAME "GeometricConstructionResult"
58 
59 #define CALCULATION_SUCCESS 0
60 #define CAN_NOT_ALLOC_RANK 1
61 #define CAN_NOT_LOAD_METERIAL_PARAM 2
62 #define CAN_NOT_LOAD_DIRECTION_INFO 3
63 #define CAN_NOT_FIND_COMMAND_FILE 4
64 #define NEED_TO_ADJUST_MPI_CONFIG 5
65 
66 #define PI_VALUE 3.141592653589793238462643383279502884197169399375105820974944592307816406286
67 
68 #define THETA_DEGREE 0
69 #define PHI_DEGREE 1
70 
71 #define ZB "zb"
72 #define CUBIC "cubic"
73 
74 #define NMAXDOMAIN 10
75 #define MAX_NEIGHBOR 10
76 
77 #define BOX_SHAPE 1
78 #define CYLINDER_SHAPE 2
79 
83 #define EXIT_MPI_WAIT 0
84 #define CHECK_EV_ORTH 1
85 #define DO_ORTHGONAL 2
86 #define SEND_BACK_EV 3
87 #define NOT_SEND_BACK_EV 4
88 #define SEND_EV_TO_MASTER 5
89 #define CHECK_EV_ORTH_SIMPLE 6
90 
91 #define COMMAND_SIZE 4
92 
93 
94 enum AXIS_DEFINE { _X = 0, _Y, _Z };
95 enum MATERIAL_INDEX { ATOM_NUM_BASE = 0, Si = 1, Ga = 2, As = 4, GaAs = 6, In = 8, InAs = 12 };
96 #define MATERIAL_COUNT 4
MATERIAL_INDEX
Definition: CKNGlobal.h:106
Definition: CKNGlobal.h:106
Definition: CKNGlobal.h:105
Definition: CKNGlobal.h:105
const unsigned long ERROR_OUT_OF_RANGE
Error code that means during access vector or matrix input index out of range.
Definition: CKNGlobal.h:63
const unsigned long ERROR_WRONG_ORDER_OPERATION
Error code that means during operation between vector & vector, matrix & vector order don't match...
Definition: CKNGlobal.h:64
Definition: CKNGlobal.h:105
AXIS_DEFINE
Definition: CKNGlobal.h:105
Definition: CKNGlobal.h:106
Definition: CKNGlobal.h:106
Definition: CKNGlobal.h:106
const unsigned long ERROR_MALLOC
Error code that means error occur during memory allocation.
Definition: CKNGlobal.h:62