Program start
1: /* Program usage: mpirun –np <procs> ./heat_petsc [–help] [all PETSc options] */
3: static char help[ ] = "Solves a linear system in parallel with SLES: Compute steady \n
4: temperature distribution for given temperatures on a boundary.\n
5: Input parameters include: \n
6: –random_exact_sol : use a random exact solution vector \n
7: –view_exact_sol : write exact solution vector to stdout \n
8: –view_sol_serial : write solution grid to stdout (1 item/line) \n
9: –view_sol : write solution grid to stdout (as matrix) \n
10: –view_sol_x –draw_pause 3 : view solution x on a X window \n
11: –view_mat_x –draw_pause 3 : view matrix A on a X window \n
12: –m <mesh_x> : number of mesh points in x-direction \n
13: –n <mesh_y> : number of mesh points in y-direction \n";
46: PetscInitialize(&argc, &args, (char *)0, help);