assert that Petsc really is initialized when initialized=True

Wow

On Friday, October 3, 2014, Chris Kees <notifications@github.com> wrote:

> In DaetkPetscSys.cpp:
>
> > @@ -55,6 +55,9 @@ Sys::Sys(int& argc, char **argv,char* help, char* file)
> >    using std::cout;
> >    if (initialized)
> >      {
> > +      PetscBool isInitialized;
> > +      Err ierr=PetscInitialized(&isInitialized);
> > +      assert(isInitialized);
>
> That Daetk::Petsc::Err class overloads = to check the integer and call
> PetscError directly:) Why is that better than calling SETERRQ? Because
> macros in all caps are unclean? I don't know. We were young and stupid.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/erdc-cm/daetk/pull/3/files#r18381179>.
>