Actual source code: ex27.c
petsc-3.12.5 2020-03-29
2: static char help[] = "Tests PetscMergeIntArray\n";
4: #include <petscsys.h>
5: #include <petscviewer.h>
7: int main(int argc,char **argv)
8: {
9: const PetscInt first[] = {0,2,3,5,8}, second[] = {1,3,4,8,10,11};
10: PetscInt *result,n;
13: PetscInitialize(&argc,&argv,(char*)0,help);if (ierr) return ierr;
14: PetscMergeIntArray(5,first,6,second,&n,&result);
15: PetscIntView(n,result,PETSC_VIEWER_STDOUT_SELF);
16: PetscFinalize();
17: return ierr;
18: }