MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getCopy

Method getCopy

SRC/material/section/SectionAggregator.cpp:616–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616SectionForceDeformation *
617SectionAggregator::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
637const ID&
638SectionAggregator::getType ()

Callers 1

SectionAggregatorMethod · 0.45

Calls 2

exitFunction · 0.85
getTagMethod · 0.45

Tested by

no test coverage detected