| 28 |
|
} |
| 29 |
|
|
| 30 |
|
void ConstraintAlgorithm::doConstrain(){ |
| 31 |
< |
const int maxConsIteration = 300; |
| 31 |
> |
const int maxConsIteration = 1; |
| 32 |
|
bool done; |
| 33 |
|
int iteration; |
| 34 |
|
int maxIteration; |
| 63 |
|
exeStatus = doConstrainPair(consPair); |
| 64 |
|
|
| 65 |
|
switch(exeStatus){ |
| 66 |
+ |
case consExceedMaxIter: |
| 67 |
+ |
//cerr << "ConstraintAlgorithm::doConstrain() Error: can not constrain the bond within maximum iteration" << endl; |
| 68 |
+ |
error = true; |
| 69 |
+ |
|
| 70 |
|
case consFail: |
| 71 |
< |
cerr << "ConstraintAlgorithm::doConstrain() Error: Constraint Fail" << endl; |
| 71 |
> |
//cerr << "ConstraintAlgorithm::doConstrain() Error: Constraint Fail" << endl; |
| 72 |
|
error = true; |
| 73 |
|
break; |
| 74 |
|
case consSuccess: |