Error Handlers Function
Santolo Felaco
ahuramazda10 at gmail.com
Thu Feb 26 13:27:56 CST 2009
Hi,
I am using mpich conteined in Petsc. If use return instead exit(2) the
handler function is not called.
Thanks.
2009/2/26 Barry Smith <bsmith at mcs.anl.gov>
>
> This is an MPI question and has nothing to do with PETSc. Perhaps there
> are some MPI mailing lists out there for this type of question.
> Note: I don't think exit() is something that all MPI implementations can
> catch and distribute to the other MPI nodes, but this is something MPI folks
> would know.
>
> Barry
>
>
> On Feb 26, 2009, at 10:00 AM, Santolo Felaco wrote:
>
> Hi,
>> I have setted a handler error function:
>> ierr = MPI_Errhandler_create(errorHandler,&errhandler); CHKERRQ(ierr);
>> ierr = MPI_Errhandler_set(PETSC_COMM_WORLD,errhandler); CHKERRQ(ierr);
>>
>> I have simulated a fault of processor 1:
>>
>> if (rank == 1)) exit(2);
>> MPI_Barrier(PETSC_COMM_WORLD);
>>
>> The process remains blocked and the functions errorHandler is not called.
>> If I use return; instead of exit(2); the process don't remains blocked, I
>> read the error of Petsc but errorHandler is not called.
>>
>> Help me please.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090226/121e3487/attachment.htm>
More information about the petsc-users
mailing list