destroy a simulated_annealing_type from C
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=c_intptr_t), | intent(in), | value | :: | iproblem |
subroutine destroy_simulated_annealing(iproblem) & bind(C, name="destroy_simulated_annealing") integer(c_intptr_t), intent(in), value :: iproblem type(c_sa_wrapper_type), pointer :: wrapper call int_pointer_to_f_pointer(iproblem, wrapper) if (associated(wrapper)) then call wrapper%destroy() deallocate (wrapper) end if end subroutine destroy_simulated_annealing