solver_session_copy_solution Subroutine

public subroutine solver_session_copy_solution(session, x, rho, u, p, status, message)

Copy the current primitive-variable solution into caller-owned arrays.

All four arrays must be sized exactly to solver_session_get_point_count. The session never returns aliased storage across the API boundary.

Arguments

Type IntentOptional Attributes Name
type(solver_session_t), intent(in) :: session
real(kind=wp), intent(out) :: x(:)
real(kind=wp), intent(out) :: rho(:)
real(kind=wp), intent(out) :: u(:)
real(kind=wp), intent(out) :: p(:)
integer, intent(out), optional :: status
character(len=*), intent(out), optional :: message