[petsc-dev] need for C++ streams versions of routines with output?

Barry Smith bsmith at mcs.anl.gov
Fri Oct 21 08:35:13 CDT 2011


   Is there really a need for PetscTraceBackErrorHandlerCxx() that uses C++ streams for output instead of C IO but otherwise looks very similar to PetscTraceBackErrorHandler()? It seems like a gross duplication of code (including specific error message stuff that will get out of sync between the two versions very quickly.)  It, at least needs a Developers Note: in the manual page saying why it exists when it has this troubling code duplication.


    Barry




More information about the petsc-dev mailing list