FlurryPP
FlurryPP copied to clipboard
Compilation error related to METIS
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());