[petsc-users] undefined reference to `dmsetmattype_'

Jed Brown jed at jedbrown.org
Mon Mar 17 13:11:05 CDT 2014


"Xiao, Jianjun (IKET)" <jianjun.xiao at kit.edu> writes:

> Hello,
>
> After the version was upgraded to 3.4.4, I got the error "undefined reference to `dmsetmattype_' ". I was using PETSc-dev, and it worked fine.
>
> The matrix was created as below
>
>        CALL DMSetMatType(da,MATMPISBAIJ,ierr)
>        CALL DMCreateMatrix(da,mat,ierr)

Use 'master' for this interface.  The MatType argument to DMCreateMatrix
was removed between v3.4 and 'master'.  Barry added the missing Fortran
stub (dmsetmattype_) in the commit that make this interface change.
You're already using the new interface, so stick with 'master' until we
make a release (soon).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140317/c185e45e/attachment.pgp>


More information about the petsc-users mailing list