[petsc-users] DIVERGED_NANORINF for CG/Bjacobi for transient diffusion

Matthew Knepley knepley at gmail.com
Wed Mar 30 16:27:20 CDT 2016


On Wed, Mar 30, 2016 at 4:26 PM, Justin Chang <jychang48 at gmail.com> wrote:

> Matt,
>
> So do I use:
>
> "-pc_type bjacobi -sub_pc_type lu"
>

The above.

   Matt


> or this:
>
> "-sub_pc_type lu"
>
> Thanks,
> Justin
>
> On Wed, Mar 30, 2016 at 4:23 PM, Matthew Knepley <knepley at gmail.com>
> wrote:
>
>> On Wed, Mar 30, 2016 at 4:18 PM, Justin Chang <jychang48 at gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I am getting this error:
>>>
>>> Linear solve did not converge due to DIVERGED_NANORINF
>>>
>>> when solving an FEM for transient diffusion using hexahedron elements.
>>> The problem is highly heterogeneous (i.e., dispersion tensor with varying
>>> cell-centered velocity) and normally CG/Bjacobi has done well for me. If I
>>> did CG/Jacobi, my solver would require nearly 7000 iterations, but would
>>> get the "expected" solution.
>>>
>>> What does the above error mean? And what could I do to address it?
>>>
>>
>> Almost certainly ILU craps out. Try using LU as the subsolver instead.
>>
>>   Matt
>>
>>
>>> Thanks,
>>> Justin
>>>
>>
>>
>>
>> --
>> What most experimenters take for granted before they begin their
>> experiments is infinitely more interesting than any results to which their
>> experiments lead.
>> -- Norbert Wiener
>>
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160330/5d9526df/attachment.html>


More information about the petsc-users mailing list