Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Compilation error related to METIS #9

Open
orxshi opened this issue Apr 4, 2017 · 0 comments
Open

Compilation error related to METIS #9

orxshi opened this issue Apr 4, 2017 · 0 comments

Comments

@orxshi
Copy link

orxshi commented Apr 4, 2017

Hi

During compilation I got the following error message. The METIS version is 5.1.0. I think static_casting might solve the problem but instead of casting each variable I would like to know if you know a quick fix and which version of METIS you used for compilation.

src/geo.cpp: In member function ‘void geo::partitionMesh()’:
src/geo.cpp:2468:84: error: cannot convert ‘int*’ to ‘idx_t* {aka long int*}’ for argument ‘1’ to ‘int METIS_PartMeshDual(idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, real_t*, idx_t*, idx_t*, idx_t*, idx_t*)’
                      &ncommon,&nproc,NULL,options,&objval,epart.data(),npart.data());
                                                                                    ^
src/geo.cpp: In member function ‘void geo::getMpiPartitions()’:
src/geo.cpp:2620:84: error: cannot convert ‘int*’ to ‘idx_t* {aka long int*}’ for argument ‘1’ to ‘int METIS_PartMeshDual(idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, real_t*, idx_t*, idx_t*, idx_t*, idx_t*)’
                      &ncommon,&nproc,NULL,options,&objval,epart.data(),npart.data());
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant