FlurryPP icon indicating copy to clipboard operation
FlurryPP copied to clipboard

Compilation error related to METIS

Open orxshi opened this issue 8 years ago • 0 comments

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());

orxshi avatar Apr 04 '17 13:04 orxshi