Delete dispersion model
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(inout) | :: | vdisp |
subroutine delete_model_api(vdisp) & & bind(C, name=namespace//"delete_model") type(c_ptr), intent(inout) :: vdisp type(vp_model), pointer :: disp if (c_associated(vdisp)) then call c_f_pointer(vdisp, disp) deallocate(disp) vdisp = c_null_ptr end if end subroutine delete_model_api