PetscOptionsGetViewer: simplify logic and use PetscEnumFind()
Replaces dubious use of PetscStrendswithwhich() to match enum values, including invalid PetscViewerFormat when passed "ascii::PetscViewe
PetscOptionsGetViewer: simplify logic and use PetscEnumFind()
Replaces dubious use of PetscStrendswithwhich() to match enum values, including invalid PetscViewerFormat when passed "ascii::PetscViewerFormat" or "ascii::PETSC_VIEWER_".
This removes ability to use single-character "ascii:filename::a". Instead, "append" must be spelled out as in "ascii:filename::append"
show more ...
|