| 614 | } |
| 615 | |
| 616 | SectionForceDeformation * |
| 617 | SectionAggregator::getCopy(void) |
| 618 | { |
| 619 | SectionAggregator *theCopy = 0; |
| 620 | |
| 621 | if (theSection) |
| 622 | theCopy = new SectionAggregator(this->getTag(), *theSection, |
| 623 | numMats, theAdditions, *matCodes); |
| 624 | else |
| 625 | theCopy = new SectionAggregator(this->getTag(), numMats, |
| 626 | theAdditions, *matCodes); |
| 627 | |
| 628 | if (theCopy == 0) { |
| 629 | opserr << "SectionAggregator::getCopy -- failed to allocate copy\n"; |
| 630 | exit(-1); |
| 631 | } |
| 632 | |
| 633 | |
| 634 | return theCopy; |
| 635 | } |
| 636 | |
| 637 | const ID& |
| 638 | SectionAggregator::getType () |
no test coverage detected