[petsc-dev] de-global variablelizing PETSc

Jed Brown jedbrown at mcs.anl.gov
Sun Nov 10 18:15:25 CST 2013


Barry Smith <bsmith at mcs.anl.gov> writes:

>    PetscInitializeBegin()
>    PetscSetX()
>    PetscSetY()
>    ….
>    PetscInitializeEnd() 
>
>    where PetscInitialize() does the default of all of these things?

I'm not sure you need a special PetscInitializeEnd(), just
PetscInitializeMinimal() and then pass arguments to the
optional/customizable initialization steps.  It's easier to understand
an error that is returned from the function that caused it then to store
the arguments until one big function at the end, unless there are
terribly confusing ordering problems.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131110/4a84de99/attachment.sig>


More information about the petsc-dev mailing list