# Test the heat_petsc example: # cd ~/PETSC/#nr # cp ~/host.list ./ mpiexec -n 4 ./heat_petsc mpiexec -n 4 ./heat_petsc -wrong_option -options_left mpiexec -n 4 ./heat_petsc -ksp_monitor -view_mat_x -draw_pause 3 -options_left mpiexec -n 4 ./heat_petsc -ksp_view -view_sol -view_sol_x -draw_pause 3 -options_left # Which is default KSP? / Compare the execution time: mpiexec -n 4 ./heat_petsc -m 300 -n 300 -log_summary -options_left mpiexec -n 4 ./heat_petsc -m 300 -n 300 -ksp_type cg -log_summary -options_left mpiexec -n 4 ./heat_petsc -m 300 -n 300 -ksp_type cr -log_summary -options_left mpiexec -n 4 ./heat_petsc -m 300 -n 300 -ksp_type bcgs -log_summary -options_left # Calculate Speedup of CG: mpiexec -n 1 ./heat_petsc -m 300 -n 300 -ksp_type cg -log_summary -options_left mpiexec -n 2 ./heat_petsc -m 300 -n 300 -ksp_type cg -log_summary -options_left mpiexec -n 4 ./heat_petsc -m 300 -n 300 -ksp_type cg -log_summary -options_left mpiexec -n 6 ./heat_petsc -m 300 -n 300 -ksp_type cg -log_summary -options_left mpiexec -n 8 ./heat_petsc -m 300 -n 300 -ksp_type cg -log_summary -options_left ### If you want to compile: # # cp ../source/heat_petsc.c ../source/Makefile ./ # mv heat_petsc heat_petsc_orig # otherwise, you overwrite the public version for all groups!!!! # export PETSC_ARCH=aix5.1.0.0 # or aix5.1.0.0-opt # export PETSC_DIR=/users/nstring/PetSc/petsc-2.3.0 # make heat_petsc