Skip to content

Commit

Permalink
removed the finalize for type_list. This is a special thing for photo…
Browse files Browse the repository at this point in the history
…chemical model. Instead I will extend the type there.
  • Loading branch information
Nicholaswogan committed Feb 6, 2022
1 parent f1e8de2 commit 3c56d7b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions yaml_types.f90
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ subroutine node_dump(self,unit,indent)
procedure :: set_path => list_set_path
procedure :: finalize => list_finalize
procedure :: size => list_size
final :: list_destroy
end type

type type_error
Expand Down Expand Up @@ -611,19 +610,5 @@ function list_size(self) result(n)
enddo

end function list_size

subroutine list_destroy(self)
type(type_list), intent(inout) :: self

type (type_list_item),pointer :: item, next

item => self%first
do while (associated(item))
next => item%next
deallocate(item)
item => next
end do
nullify(self%first)
end subroutine

end module yaml_types

0 comments on commit 3c56d7b

Please sign in to comment.