[petsc-users] undefined reference to `dmsetmattype_'

Xiao, Jianjun (IKET) jianjun.xiao at kit.edu
Mon Mar 17 15:51:11 CDT 2014


Dear Jed,

Thank you.

I am using 'master' now. But I have another error

DMDABoundaryType :: bx, by, bz
      1
Error: Unclassifiable statement at (1)

JJ
________________________________________
From: Jed Brown [jed at jedbrown.org]
Sent: Monday, March 17, 2014 7:11 PM
To: Xiao, Jianjun (IKET); petsc-users at mcs.anl.gov
Subject: Re: [petsc-users] undefined reference to `dmsetmattype_'

"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).


More information about the petsc-users mailing list