Free a method data structure again.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(inout) | :: | vardat_ptr |
Data pointer to free |
subroutine tem_free_varSys_data_ptr(vardat_ptr)
! ---------------------------------------------------------------------- !
!> Data pointer to free
type(c_ptr), intent(inout) :: vardat_ptr
! ---------------------------------------------------------------------- !
type(tem_varSys_op_data_type), pointer :: vardat
! ---------------------------------------------------------------------- !
call c_f_pointer(vardat_ptr, vardat)
deallocate(vardat)
vardat_ptr = c_null_ptr
end subroutine tem_free_varSys_data_ptr