solver_session_copy_global_solution Subroutine

public subroutine solver_session_copy_global_solution(session, x_global, rho_global, u_global, p_global, status, message)

Gather the current solution from every rank onto rank 0 and fill the caller-owned global arrays. Collective: must be invoked on every rank with the same call sequence as the MPI worker pool. On non-root ranks the output arrays may be size 0 and are not written.

Output buffer sizing (on rank 0): x_global, rho_global, u_global, p_global must all be of length solver_session_get_global_point_count.

Arguments

Type IntentOptional Attributes Name
type(solver_session_t), intent(inout) :: session
real(kind=wp), intent(out) :: x_global(:)
real(kind=wp), intent(out) :: rho_global(:)
real(kind=wp), intent(out) :: u_global(:)
real(kind=wp), intent(out) :: p_global(:)
integer, intent(out), optional :: status
character(len=*), intent(out), optional :: message