[petsc-users] Error in vec/vec/examples/tutorials/ex19.c

Sajid Ali sajidsyed2021 at u.northwestern.edu
Fri Nov 30 13:30:06 CST 2018


Hi,

I tried running ex19.c and I get the following error (I added a small
snippet to print the local size on rank0 as well) :

[sajid at xrm temp]$ mpirun -np 2 ./ex19
local_sizes : 3 4
[1]PETSC ERROR: --------------------- Error Message
--------------------------------------------------------------
[1]PETSC ERROR: Arguments are incompatible
[1]PETSC ERROR: Incompatible vector local lengths parameter # 1 local size
3 != parameter # 2 local size 2
[1]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for
trouble shooting.
[1]PETSC ERROR: Petsc Release Version 3.10.2, unknown
[1]PETSC ERROR: ./ex19 on a  named xrm by sajid Fri Nov 30 13:28:36 2018
[1]PETSC ERROR: [0]PETSC ERROR: --------------------- Error Message
--------------------------------------------------------------
[0]PETSC ERROR: Arguments are incompatible
[0]PETSC ERROR: Incompatible vector local lengths parameter # 1 local size
3 != parameter # 2 local size 4
[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for
trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.10.2, unknown
[0]PETSC ERROR: ./ex19 on a  named xrm by sajid Fri Nov 30 13:28:36 2018

Does this mean that PETSC_DECIDE is inconsistent between two calls in the
same file ?

Thank You,
Sajid Ali
Applied Physics
Northwestern University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181130/9d103470/attachment.html>


More information about the petsc-users mailing list