Re: [petsc-users] error message

2021-03-16 Thread Sam Guo
Barry, Thanks. Sam On Tuesday, March 16, 2021, Barry Smith wrote: > > Sam, > >You can pass a simple C function to PetscPushErrorHandler() that prints > the top message and then immediately aborts to get the effect you want. But > I agree with Dave you lose a lot of useful information

Re: [petsc-users] error message

2021-03-16 Thread Sam Guo
Dave, You made a very point. Thanks, Sam On Tuesday, March 16, 2021, Dave May wrote: > > > On Tue, 16 Mar 2021 at 19:50, Sam Guo wrote: > >> Dear PETSc dev team, >>When there is an PETSc error, I go following overly verbose error >> message. Is it possible to get a simple error message

Re: [petsc-users] error message

2021-03-16 Thread Barry Smith
Sam, You can pass a simple C function to PetscPushErrorHandler() that prints the top message and then immediately aborts to get the effect you want. But I agree with Dave you lose a lot of useful information by producing such a simple error message. Barry > On Mar 16, 2021, at 5:43

Re: [petsc-users] error message

2021-03-16 Thread Dave May
On Tue, 16 Mar 2021 at 19:50, Sam Guo wrote: > Dear PETSc dev team, >When there is an PETSc error, I go following overly verbose error > message. Is it possible to get a simple error message like "Initial vector > is zero or belongs to the deflection space"? > > When an error occurs and the

[petsc-users] error message

2021-03-16 Thread Sam Guo
Dear PETSc dev team, When there is an PETSc error, I go following overly verbose error message. Is it possible to get a simple error message like "Initial vector is zero or belongs to the deflection space"? Thanks, Sam [0]PETSC ERROR: - Error Message