[petsc-users] undefined reference error in make test

praveen kumar praveenpetsc at gmail.com
Fri Jan 15 00:18:29 CST 2016


I’m struggling to figure out *undefined reference to `vectorset_*. I’ve
included both  petscvec.h and petscvec.h90 but the error appears again.
I’m attaching makefile and code. any help will be appreciated.

On Thu, Jan 14, 2016 at 9:39 PM, Matthew Knepley <knepley at gmail.com> wrote:

> On Thu, Jan 14, 2016 at 12:03 AM, praveen kumar <praveenpetsc at gmail.com>
> wrote:
>
>> I’ve written a fortan code (F90)  for domain decomposition.* I've
>> specified **the paths of include files and libraries, but the
>> compiler/linker still *
>>
>>
>> *complained about undefined references.undefined reference to
>> `vectorset_'*
>>
>
> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecSet.html
>
>
>>
>> *undefined reference to `dmdagetlocalinfo_'*
>>
>
> This function is not supported in Fortran since it takes a structure.
>
>   Thanks,
>
>     Matt
>
>
>> I’m attaching makefile and code. any help will be appreciated.
>>
>
>
>
> --
> 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/20160115/25b12153/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile
Type: application/octet-stream
Size: 477 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160115/25b12153/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.F90
Type: text/x-fortran
Size: 3139 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160115/25b12153/attachment.bin>


More information about the petsc-users mailing list