cfd_solver_get_last_error Function

public function cfd_solver_get_last_error(handle, buffer, buffer_len) result(status) bind(c, name='cfd_solver_get_last_error'))

Copy the last surfaced error string into a C buffer.

When handle cannot be resolved, the function falls back to the process-wide API error string so callers can still retrieve create/resolve failures.

Arguments

Type IntentOptional Attributes Name
type(c_ptr), value :: handle
character(kind=c_char, len=1), intent(out) :: buffer(*)
integer(kind=c_int), value :: buffer_len

Return Value integer(kind=c_int)