| 220 | } |
| 221 | |
| 222 | void |
| 223 | XdmfGridTemplate::removeGridCollection(const unsigned int index) |
| 224 | { |
| 225 | if (mBase) { |
| 226 | if (index < getNumberSteps()) { |
| 227 | if (shared_ptr<XdmfGridCollection> grid = |
| 228 | shared_dynamic_cast<XdmfGridCollection>(mBase)) { |
| 229 | this->removeStep(index); |
| 230 | } |
| 231 | } |
| 232 | } |
| 233 | else { |
| 234 | XdmfError::message(XdmfError::FATAL, "Error: Attempting to get GridCollection from template without a base"); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | void |
| 239 | XdmfGridTemplate::removeGridCollection(const std::string & /*Name*/) |
no test coverage detected