00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef BELOS_TYPES_HPP
00030 #define BELOS_TYPES_HPP
00031
00038 namespace Belos {
00039
00044 enum ETrans { NOTRANS = 0,
00045 TRANS = 1,
00046 CONJTRANS = 2
00047 };
00048
00053 enum NormType { OneNorm,
00054 TwoNorm,
00055 InfNorm
00056 };
00057
00065 enum ReturnType { Ok,
00066 Undefined,
00067 Error
00068 };
00069
00076 enum StatusType { Unchecked = 2,
00077 Unconverged = 1,
00078 Converged = 0,
00079 Failed = -1,
00080 NaN = -2
00082 };
00083
00087 inline
00088 const char* toString(const StatusType status)
00089 {
00090 switch(status) {
00091 case Unchecked:
00092 return "Unchecked";
00093 case Unconverged:
00094 return "Unconverged";
00095 case Converged:
00096 return "Converged";
00097 case Failed:
00098 return "Failed";
00099 case NaN:
00100 return "NaN";
00101 default:
00102 TEST_FOR_EXCEPT(true);
00103 }
00104 return NULL;
00105 }
00106
00113 enum ConjType {
00114 NO_CONJ,
00115 CONJ
00116 };
00117
00122 enum MsgType
00123 {
00124 Errors= 0,
00125 Warnings = 0x1,
00126 IterationDetails = 0x2,
00127 OrthoDetails = 0x4,
00128 FinalSummary = 0x8,
00129 TimingDetails = 0x10,
00130 Debug = 0x20
00131 };
00132
00133 }
00134
00135 #endif