- Timestamp:
- Oct 6, 2015 4:56:43 AM (4 years ago)
- Location:
- stable/1.16/Clp/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/1.16/Clp/src/CbcOrClpParam.cpp
r2148 r2175 54 54 #undef COIN_INT_MAX 55 55 #define COIN_INT_MAX 2147483647 56 #endif 57 #if FLUSH_PRINT_BUFFER > 2 58 int coinFlushBufferFlag=0; 56 59 #endif 57 60 void setCbcOrClpPrinting(bool yesNo) … … 1089 1092 if (action >= 0) 1090 1093 currentKeyWord_ = action; 1094 #if FLUSH_PRINT_BUFFER > 2 1095 if (name_=="bufferedMode") 1096 coinFlushBufferFlag=action; 1097 #endif 1091 1098 } 1092 1099 // Sets current parameter option … … 1099 1106 << definedKeyWords_[value] << std::endl; 1100 1107 1108 #if FLUSH_PRINT_BUFFER > 2 1109 if (name_=="bufferedMode") 1110 coinFlushBufferFlag=value; 1111 #endif 1101 1112 currentKeyWord_ = value; 1102 1113 } … … 1122 1133 sprintf(printArray, "Option for %s changed from %s to %s", 1123 1134 name_.c_str(), current, newString); 1135 #if FLUSH_PRINT_BUFFER > 2 1136 if (name_=="bufferedMode") 1137 coinFlushBufferFlag=value; 1138 #endif 1124 1139 currentKeyWord_ = value; 1125 1140 } else { … … 1136 1151 printArray[0] = '\0'; 1137 1152 if (action >= 0) { 1153 #if FLUSH_PRINT_BUFFER > 2 1154 if (name_=="bufferedMode") 1155 coinFlushBufferFlag=action; 1156 #endif 1138 1157 if (action == currentKeyWord_) 1139 1158 return NULL; … … 1648 1667 parameters[numberParameters-1].append("off2"); 1649 1668 parameters[numberParameters-1].append("on2"); 1669 #if FLUSH_PRINT_BUFFER > 2 1670 parameters[numberParameters++] = 1671 CbcOrClpParam("buff!eredMode", "Whether to flush print buffer", 1672 "on", CLP_PARAM_STR_BUFFER_MODE); 1673 parameters[numberParameters-1].append("off"); 1674 parameters[numberParameters-1].setLonghelp 1675 ( 1676 "Default is on, off switches on unbuffered output" 1677 ); 1678 parameters[numberParameters-1].setIntValue(0); 1679 #endif 1650 1680 parameters[numberParameters++] = 1651 1681 CbcOrClpParam("chol!esky", "Which cholesky algorithm", -
stable/1.16/Clp/src/CbcOrClpParam.hpp
r2070 r2175 171 171 CLP_PARAM_STR_TIME_MODE, 172 172 CLP_PARAM_STR_ABCWANTED, 173 CLP_PARAM_STR_BUFFER_MODE, 173 174 174 175 CBC_PARAM_STR_NODESTRATEGY = 251,
Note: See TracChangeset
for help on using the changeset viewer.