[petsc-dev] SETERRQ in fortran
Jed Brown
jed at jedbrown.org
Wed Jan 31 15:17:11 CST 2018
"Smith, Barry F." <bsmith at mcs.anl.gov> writes:
>> On Jan 31, 2018, at 3:12 PM, Jed Brown <jed at jedbrown.org> wrote:
>>
>> I think his point is that Fortran has a one-line if statement (no then
>> and no endif), which simplifies the macro and usage.
>>
>> if (cond) SETERRQ(...)
>
> That doesn't work because the SETERRQ() has both the call to the error handler followed by a return which is two lines in Fortran.
Ah, right. Would it make sense for PetscError to call MPI_Abort when
called in this context?
More information about the petsc-dev
mailing list