| 174 | |
| 175 | |
| 176 | int |
| 177 | Broyden::setConvergenceTest(ConvergenceTest *newTest) |
| 178 | { |
| 179 | this->EquiSolnAlgo::setConvergenceTest(newTest); |
| 180 | |
| 181 | if (theTest == 0) |
| 182 | return 0; |
| 183 | |
| 184 | if ( localTest != 0 ) |
| 185 | delete localTest ; |
| 186 | |
| 187 | localTest = theTest->getCopy( this->numberLoops ) ; |
| 188 | if (localTest == 0) { |
| 189 | opserr << "Broyden::setTest() - could not get a copy\n"; |
| 190 | return -1; |
| 191 | } |
| 192 | |
| 193 | return 0; |
| 194 | } |
| 195 | |
| 196 | |
| 197 |