Free the active meshes and geometries if this controller emitted them.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ExtrudedAMRController), | intent(inout) | :: | this |
subroutine ReleaseActive(this)
!! Free the active meshes and geometries if this controller emitted them.
implicit none
type(ExtrudedAMRController),intent(inout) :: this
if(.not. this%ownsActive) return
call this%activeGeom%Free()
deallocate(this%activeGeom)
call this%activeMesh%Free()
deallocate(this%activeMesh)
if(this%hasModel2D) then
call this%activeGeom2%Free()
deallocate(this%activeGeom2)
endif
call this%activeSurf%Free()
deallocate(this%activeSurf)
this%ownsActive = .false.
endsubroutine ReleaseActive