static char help[] = "Demonstrates use of color map\n"; #include #include int main(int argc,char **argv) { PetscDraw draw; PetscMPIInt size,rank; int x = 0,y = 0,width = 256,height = 256,i; PetscCall(PetscInitialize(&argc,&argv,NULL,help)); PetscCall(PetscDrawCreate(PETSC_COMM_WORLD,0,"Title",x,y,width,height,&draw)); PetscCall(PetscDrawSetFromOptions(draw)); PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD,&size)); PetscCallMPI(MPI_Comm_rank(PETSC_COMM_WORLD,&rank)); for (i=rank; i