| 449 | } |
| 450 | |
| 451 | int |
| 452 | BasicAnalysisBuilder::analyzeSubLevel(int level, double dT) |
| 453 | { |
| 454 | int result = 0; |
| 455 | if (numSubSteps == 0) |
| 456 | return -1; |
| 457 | |
| 458 | double stepDT = dT/(numSubSteps*1.); |
| 459 | |
| 460 | for (int i=0; i<numSubSteps; i++) { |
| 461 | result = this->analyzeStep(stepDT); |
| 462 | if (result < 0) { |
| 463 | if (level == numSubLevels) { |
| 464 | return result; |
| 465 | } else { |
| 466 | result = this->analyzeSubLevel(level+1, stepDT); |
| 467 | if (result < 0) |
| 468 | return result; |
| 469 | } |
| 470 | } |
| 471 | } |
| 472 | return result; |
| 473 | } |
| 474 | |
| 475 | |
| 476 | // analyze a transient step |
no test coverage detected