| 402 | |
| 403 | |
| 404 | void Foam::attachDetach::setRefinement(polyTopoChange& ref) const |
| 405 | { |
| 406 | // Insert the attach/detach instructions into the topological change |
| 407 | |
| 408 | if (trigger_) |
| 409 | { |
| 410 | // Clear point addressing from previous attach/detach event |
| 411 | clearAddressing(); |
| 412 | |
| 413 | if (state_ == ATTACHED) |
| 414 | { |
| 415 | detachInterface(ref); |
| 416 | |
| 417 | // Set the state to detached |
| 418 | state_ = DETACHED; |
| 419 | } |
| 420 | else if (state_ == DETACHED) |
| 421 | { |
| 422 | attachInterface(ref); |
| 423 | |
| 424 | // Set the state to attached |
| 425 | state_ = ATTACHED; |
| 426 | } |
| 427 | else |
| 428 | { |
| 429 | FatalErrorInFunction |
| 430 | << "Requested attach/detach event and currect state " |
| 431 | << "is not known." |
| 432 | << abort(FatalError); |
| 433 | } |
| 434 | |
| 435 | trigger_ = false; |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | |
| 440 | void Foam::attachDetach::updateMesh(const mapPolyMesh&) |
nothing calls this directly
no test coverage detected