petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscMergeMPIIntArray

Merges two SORTED integer arrays.

Synopsis

#include "petscsys.h"  
PetscErrorCode PetscMergeMPIIntArray(PetscInt an,const PetscMPIInt aI[],PetscInt bn,const PetscMPIInt bI[],PetscInt *n,PetscMPIInt **L)
Not Collective Many br

Input Parameters

an - number of values in the first array Many br
aI - first sorted array of integers Many br
bn - number of values in the second array Many br
bI - second array of integers Many br

Output Parameters

n - number of values in the merged array (<= an + bn) Many br
L - merged sorted array, allocated if address of NULL pointer is passed Many br

Many br

See Also

PetscSortReal(), PetscSortIntPermutation(), PetscSortInt(), PetscSortIntWithArray()

Level:intermediate
Location:
src/sys/utils/sorti.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages