[petsc-dev] SETERRQ in fortran

Barry Smith bsmith at mcs.anl.gov
Wed Jun 15 15:09:10 CDT 2011


  Ethan,

   I would suggest you define your own set of macros and play around with what works well for you. If you come to some happy conclusions you could get them into PETSc.

   I would say that they are in the current form because no one has cared much about them.


   Barry


On Jun 15, 2011, at 1:49 PM, Ethan Coon wrote:

> Is there a reason SETERRQ in fortran just calls MPI_Abort()?  Can it at
> least print the error message somehow?  Right now you just get:
> 
> ----
> 
> SETERRQ(PETSC_COMM_SELF, 1, 'invalid boundary pressure for xp_phase1', ierr)
> 
> gives:
> 
> application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
> 
> ----
> 
> And I assume it's asking too much for SETERRQ() in fortran to trigger
> the -on_error_attach_debugger?  I'm not sure what the limitations are in
> why it can't call PetscError()...
> 
> Ethan
> 
> -- 
> ------------------------------------
> Ethan Coon
> Post-Doctoral Researcher
> Applied Mathematics - T-5
> Los Alamos National Laboratory
> 505-665-8289
> 
> http://www.ldeo.columbia.edu/~ecoon/
> ------------------------------------
> 




More information about the petsc-dev mailing list