2: static char help[] = "Tests PetscMergeIntArray\n"; 4: #include <petscsys.h> 5: #include <petscviewer.h> 9: int main(int argc,char **argv) 10: { 11: const PetscInt first[] = {0,2,3,5,8}, second[] = {1,3,4,8,10,11}; 12: PetscInt *result,n; 15: PetscInitialize(&argc,&argv,(char*)0,help); 16: PetscMergeIntArray(5,first,6,second,&n,&result); 17: PetscIntView(n,result,PETSC_VIEWER_STDOUT_SELF); 18: PetscFinalize(); 19: return 0; 20: }