[Dune] Problem linking parmetis with cmake

Aleksejs Fomins aleksejs.fomins at lspr.ch
Wed Nov 26 16:38:55 CET 2014


Dear All,

Finally a win ^_^

Summary of problem:
-- Parmetis does not link to the source

Solution
1) Add following lines to
dune-curvilineargeometry/cmake/modules/DuneCurvilineargeometry.cmake:

find_package(ParMETIS)
include(AddParMETISFlags)

2) Add following line to
dune-curvilineargeometry/cmake/modules/CMakeLists.txt

set(modules "DuneCurvilineargrid.cmake")

3) Add the following line AT THE END of the CMakeLists.txt file which is
in the directory where the test source is

if(HAVE_MPI)
    add_dune_parmetis_flags(curvilineargmshtest)
endif(HAVE_MPI)


Thanks a lot to Marcus and Carsten for help.

Cheers,
Aleksejs



On 11/26/2014 04:26 PM, Markus Blatt wrote:
> For the sake of DUNE users that come here via a Search engine:
> 
> On Wed, Nov 26, 2014 at 03:40:20PM +0100, Markus Blatt wrote:
>> Ergo you have to put the following into
>> dune-curvilineargeometry/cmake/modules/DuneCurvilineargeometry.cmake: 
>>
> 
> The correct file name is DuneCurvilineargeometryMacros.cmake 
>> find_package(ParMETIS)
> 
> An then
> 
> include(AddParMETISFlags)
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141126/7141e6dd/attachment.sig>


More information about the Dune mailing list