cfd_solver_copy_solution Function

public function cfd_solver_copy_solution(handle, x, rho, u, p, n_point) result(status) bind(c, name='cfd_solver_copy_solution'))

Copy the primitive solution into caller-owned C buffers.

n_point must match the exact grid-point count reported by cfd_solver_get_point_count.

Arguments

Type IntentOptional Attributes Name
type(c_ptr), value :: handle
real(kind=c_double), intent(out) :: x(*)
real(kind=c_double), intent(out) :: rho(*)
real(kind=c_double), intent(out) :: u(*)
real(kind=c_double), intent(out) :: p(*)
integer(kind=c_int), value :: n_point

Return Value integer(kind=c_int)