[petsc-users] Too few arguments to PetscInitialize

Jed Brown jed at jedbrown.org
Tue Jul 15 14:56:28 CDT 2014


Xin Zhao <sean.null at gmail.com> writes:

> Dear all,
>
> I'm using the old version of PETSc 2.3.3-p16. When I compiled some code
> with the old version, I've got a batch of errors like:
>
> error #165: too few arguments in function call
>
>           PetscInitialize(&argc, &argv);
>
> error #165: too few arguments in function call
>
>           m_PetscMatrix = MatCreateSeqAIJ(m, n, nNonzero);
>
> My thought is that the PetscPolymorphicSubroutine may not work.

Or you are compiling with a C version of PETSc (not
--with-clanguage=cxx)?

PetscPolymorphicSubroutine was removed in petsc-3.3.

> Since the code is no longer under maintenance (the graduate who wrote the
> code left), I wonder how much the API has been changed from 2.3.3 to the
> latest 3.5.0?

Most things will work, but any complex code that has sat unmaintained
for 7 years will need some updating.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140715/a9d033dc/attachment.pgp>


More information about the petsc-users mailing list