fei_defs.h

00001 #ifndef _fei_defs_h_
00002 #define _fei_defs_h_
00003 
00004 /*
00005    In this file we set some #defines to use as parameters to
00006    some fei functions, and also some error-code returns.
00007    We also provide the typedef for 'GlobalID' which appears in
00008    many FEI function prototypes. Note that the default case is
00009    for GlobalID to simply be an int.
00010    This file is included by both C and C++ versions of the fei.
00011 */
00012 
00013 #ifdef EIGHT_BYTE_GLOBAL_ID
00014     typedef long long   GlobalID;
00015     #define GlobalID_MAX LLONG_MAX
00016     #define GlobalID_MIN LLONG_MIN
00017 #else
00018     typedef int GlobalID;
00019 #endif
00020 
00021 
00022 /* solveType (used in 'setSolveType'): */
00023 #define FEI_SINGLE_SYSTEM     0
00024 #define FEI_EIGEN_SOLVE       1
00025 #define FEI_AGGREGATE_SUM     2
00026 #define FEI_AGGREGATE_PRODUCT 3
00027 
00028 /* IDType (used in coefficient-access functions) */
00029 #define FEI_NODE 0
00030 #define FEI_ELEMENT 1
00031 #define FEI_ONLY_NODES 2
00032 #define FEI_ONLY_ELEMENTS 3
00033 
00034 /* elemFormat (used in 'sumInElem' and 'sumInElemMatrix'): */
00035 #define FEI_DENSE_ROW      0
00036 #define FEI_UPPER_SYMM_ROW 1
00037 #define FEI_LOWER_SYMM_ROW 2
00038 #define FEI_DENSE_COL      3
00039 #define FEI_UPPER_SYMM_COL 4
00040 #define FEI_LOWER_SYMM_COL 5
00041 #define FEI_DIAGONAL       6
00042 #define FEI_BLOCK_DIAGONAL_ROW 7
00043 #define FEI_BLOCK_DIAGONAL_COL 8
00044 
00045 
00046 /* interleaveStrategy (used in initElemBlock): */
00047 #define FEI_NODE_MAJOR  0
00048 #define FEI_FIELD_MAJOR 1
00049 
00050 
00051 /* timingMode (used in cumulative_MPI_Wtimes): */
00052 #define FEI_LOCAL_TIMES 0
00053 #define FEI_MAX_TIMES   1
00054 #define FEI_MIN_TIMES   2
00055 
00056 /* FEI function return values */
00057 #define FEI_SUCCESS         0
00058 #define FEI_FATAL_ERROR    -1
00059 #define FEI_ID_NOT_FOUND   -2
00060 
00061 #endif
00062 

Generated on Wed May 12 21:30:41 2010 for FEI by  doxygen 1.4.7