11 #define THROW_END_EXIT(EXCEPTION_NAME) \
12 throw EXCEPTION_NAME; \
16 #define FREE_MEM(pointer)\
24 #define ALLOC_WITH_NULL_INIT(pointer, data_type, data_size)\
26 pointer = (data_type*)malloc(sizeof(data_type)*data_size);\
30 #define SHOW_SIMPLE_MSG(message)\
31 if (CKNMPIManager::IsRootRank())\
32 CKNIPCCUtility::ShowMsg(message);
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
42 #define ATOM_DEFAULT_INDEX -1
45 #define DEGENERATED_INDEX -1
55 #define UNITCELL_WRITING_BLOCK_SIZE 8
57 #define GEO_OUTPUT_FILE_NAME "GeometricConstructionResult"
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
66 #define PI_VALUE 3.141592653589793238462643383279502884197169399375105820974944592307816406286
68 #define THETA_DEGREE 0
75 #define MAX_NEIGHBOR 10
78 #define CYLINDER_SHAPE 2
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
91 #define COMMAND_SIZE 4
96 #define MATERIAL_COUNT 4
const unsigned long ERROR_OUT_OF_RANGE
Error code that means during access vector or matrix input index out of range.
const unsigned long ERROR_WRONG_ORDER_OPERATION
Error code that means during operation between vector & vector, matrix & vector order don't match...
const unsigned long ERROR_MALLOC
Error code that means error occur during memory allocation.