1. petsc
  2. PETSc
  3. petsc

Source

petsc / src / vec / is / ao / examples / tests / output / ex1_2.out

Number of elements in ordering 10
PETSc->App  App->PETSc
  0    0      0    0
  1    2      1    5
  2    4      2    1
  3    6      3    6
  4    8      4    2
  5    1      5    7
  6    3      6    3
  7    5      7    8
  8    7      8    4
  9    9      9    9
[0] 2,1,9,7 PetscToApplication 4 2 9 5
[0] 0,3,4 ApplicationToPetsc 0 6 2
[1] 2,1,9,7 PetscToApplication 4 2 9 5
[1] 0,3,4 ApplicationToPetsc 0 6 2
Test AOCreateMemoryScalable: 
Number of elements in ordering 10
PETSc->App  App->PETSc
Process [0]
  0    0      0    0
  1    2      1    5
  2    4      2    1
  3    6      3    6
  4    8      4    2
Process [1]
  5    1      5    7
  6    3      6    3
  7    5      7    8
  8    7      8    4
  9    9      9    9
Test AOCreateMemoryScalable with ispetsc=NULL:
Number of elements in ordering 10
PETSc->App  App->PETSc
Process [0]
  0    0      0    0
  1    2      1    5
  2    4      2    1
  3    6      3    6
  4    8      4    2
Process [1]
  5    1      5    7
  6    3      6    3
  7    5      7    8
  8    7      8    4
  9    9      9    9
Test general API: 
[0] 2,1,9,7 PetscToApplication 4 2 9 5
[0] 0,3,4 ApplicationToPetsc 0 6 2
[1] 2,1,9,7 PetscToApplication 4 2 9 5
[1] 0,3,4 ApplicationToPetsc 0 6 2