Dear PETSc --

I notice in the users manual that the C examples show

ierr = PetscInitialize(&argc,&args,(char*)0,help);if (ierr) return ierr;

at the start of main() and

ierr = PetscFinalize();
return ierr;

at the end of main().  Is this the deliberate, recommended style?  My
understanding of these choices is that if PetscInitialize() fails then
CHKERRQ(ierr) may not do the right thing, while if PetscFinalize() fails
then that should be the result of main() (without any fiddling by CHKERRQ
etc.).  Is this the correct understanding?

Thanks,

Ed

-- 
Ed Bueler
Dept of Mathematics and Statistics
University of Alaska Fairbanks
Fairbanks, AK 99775-6660
306C Chapman

Reply via email to