| 616 | } |
| 617 | |
| 618 | void |
| 619 | XdmfGridTemplate::removeRegularGrid(const unsigned int index) |
| 620 | { |
| 621 | if (mBase) { |
| 622 | if (index < getNumberSteps()) { |
| 623 | if (shared_ptr<XdmfRegularGrid> grid = |
| 624 | shared_dynamic_cast<XdmfRegularGrid>(mBase)) { |
| 625 | this->removeStep(index); |
| 626 | } |
| 627 | } |
| 628 | } |
| 629 | else { |
| 630 | XdmfError::message(XdmfError::FATAL, "Error: Attempting to get RegularGrid from template without a base"); |
| 631 | } |
| 632 | } |
| 633 | |
| 634 | void |
| 635 | XdmfGridTemplate::removeRegularGrid(const std::string & Name) |
no test coverage detected