Do some error checking when calling PETSc routines.
Do some error checking when calling PETSc routines.

Refs #1652.

r16098

cpritam/moose,milljm/moose,cpritam/moose,nuclear-wizard/moose,mellis13/moose,Chuban/moose,kasra83/moose,jinmm1992/moose,laagesen/moose,dschwen/moose,jbair34/moose,milljm/moose,zzyfisherman/moose,capitalaslash/moose,markr622/moose,giopastor/moose,jinmm1992/moose,sapitts/moose,tonkmr/moose,kasra83/moose,dschwen/moose,liuwenf/moose,bwspenc/moose,markr622/moose,katyhuff/moose,idaholab/moose,Chuban/moose,WilkAndy/moose,milljm/moose,roystgnr/moose,permcody/moose,jbair34/moose,sapitts/moose,backmari/moose,bwspenc/moose,sapitts/moose,bwspenc/moose,shanestafford/moose,wgapl/moose,tonkmr/moose,liuwenf/moose,nuclear-wizard/moose,jiangwen84/moose,capitalaslash/moose,apc-llc/moose,adamLange/moose,danielru/moose,raghavaggarwal/moose,raghavaggarwal/moose,apc-llc/moose,SudiptaBiswas/moose,lindsayad/moose,friedmud/moose,waxmanr/moose,shanestafford/moose,jinmm1992/moose,xy515258/moose,yipenggao/moose,joshua-cogliati-inl/moose,bwspenc/moose,markr622/moose,giopastor/moose,dschwen/moose,tonkmr/moose,idaholab/moose,lindsayad/moose,zzyfisherman/moose,capitalaslash/moose,harterj/moose,lindsayad/moose,jessecarterMOOSE/moose,kasra83/moose,jbair34/moose,laagesen/moose,shanestafford/moose,yipenggao/moose,backmari/moose,joshua-cogliati-inl/moose,stimpsonsg/moose,capitalaslash/moose,liuwenf/moose,mellis13/moose,mellis13/moose,waxmanr/moose,yipenggao/moose,wgapl/moose,friedmud/moose,jasondhales/moose,andrsd/moose,lindsayad/moose,jessecarterMOOSE/moose,permcody/moose,bwspenc/moose,wgapl/moose,backmari/moose,kasra83/moose,jessecarterMOOSE/moose,jessecarterMOOSE/moose,katyhuff/moose,jinmm1992/moose,liuwenf/moose,dschwen/moose,idaholab/moose,giopastor/moose,jiangwen84/moose,dschwen/moose,idaholab/moose,andrsd/moose,sapitts/moose,YaqiWang/moose,giopastor/moose,andrsd/moose,zzyfisherman/moose,jhbradley/moose,cpritam/moose,WilkAndy/moose,raghavaggarwal/moose,xy515258/moose,danielru/moose,Chuban/moose,shanestafford/moose,waxmanr/moose,cpritam/moose,harterj/moose,zzyfisherman/moose,laagesen/moose,zzyfisherman/moose,tonkmr/moose,cpritam/moose,harterj/moose,laagesen/moose,stimpsonsg/moose,laagesen/moose,WilkAndy/moose,SudiptaBiswas/moose,jhbradley/moose,jhbradley/moose,adamLange/moose,permcody/moose,cpritam/moose,jbair34/moose,WilkAndy/moose,nuclear-wizard/moose,mellis13/moose,tonkmr/moose,stimpsonsg/moose,harterj/moose,tonkmr/moose,YaqiWang/moose,xy515258/moose,YaqiWang/moose,sapitts/moose,idaholab/moose,roystgnr/moose,jasondhales/moose,roystgnr/moose,lindsayad/moose,roystgnr/moose,andrsd/moose,adamLange/moose,Chuban/moose,jasondhales/moose,adamLange/moose,nuclear-wizard/moose,SudiptaBiswas/moose,SudiptaBiswas/moose,danielru/moose,liuwenf/moose,friedmud/moose,backmari/moose,friedmud/moose,katyhuff/moose,permcody/moose,jiangwen84/moose,liuwenf/moose,jhbradley/moose,SudiptaBiswas/moose,milljm/moose,YaqiWang/moose,shanestafford/moose,zzyfisherman/moose,WilkAndy/moose,joshua-cogliati-inl/moose,jiangwen84/moose,joshua-cogliati-inl/moose,raghavaggarwal/moose,roystgnr/moose,xy515258/moose,WilkAndy/moose,jasondhales/moose,shanestafford/moose,yipenggao/moose,jessecarterMOOSE/moose,markr622/moose,apc-llc/moose,harterj/moose,apc-llc/moose,andrsd/moose,milljm/moose,stimpsonsg/moose,wgapl/moose,katyhuff/moose,waxmanr/moose,roystgnr/moose,roystgnr/moose,danielru/moose