[petsc-users] How to install the external packages?
Barry Smith
bsmith at mcs.anl.gov
Mon Jan 4 15:43:32 CST 2010
Likely you do not have the correct link libraries for your own
code. Are you using the PETSc makefile rule to link your code? If not
you will have to change your makefile whenever you add new external
packages. Does make getlinklibs in the PETSc directory list the
libraries in the same order that you list them in your makefile?
Barry
On Jan 4, 2010, at 3:22 PM, hxie at umn.edu wrote:
>
> 'make test' runs ok. But I cannot compile my own code. The problems
> I guess are the conflict of libmetis and libparmetis. The error
> messages while compiling my own code:
>
> Undefined symbols:
> "_METIS_mCPartGraphRecursive2", referenced from:
> _ParMETIS_V3_PartKway in libparmetis.a(kmetis.o)
> _PartitionSmallGraph__ in libparmetis.a(weird.o)
> _Moc_InitPartition_RB__ in libparmetis.a(initpart.o)
> _Moc_InitPartition_RB__ in libparmetis.a(initpart.o)
> _Balance_Partition__ in libparmetis.a(initbalance.o)
> _Balance_Partition__ in libparmetis.a(initbalance.o)
> ld: symbol(s) not found
>
> BTW, which example can I use to test the command line option "-
> mat_type superlu_dist -pc_type lu -ksp_type preonly"?
>
> Bests,
> Hui
More information about the petsc-users
mailing list