| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(lattice), | pointer | :: | this |
subroutine lattice_deconstructor(this) ! routine to nullify the pointer to a lattice class class(lattice), pointer :: this ! first be sure that no sites are allocated call this%deallocate_sites() nullify (this) select type (this) class is (aim) deallocate(this%impurity_sites) deallocate(this%bath_sites) end select end subroutine lattice_deconstructor