fenics team mailing list archive
-
fenics team
-
Mailing list archive
-
Message #01817
Re: Parmetis 4.2 compilation error from dorsal(dev)
On Tue, Nov 20, 2012 at 7:04 AM, Shiyuan <gshy2014@xxxxxxxxx> wrote:
> Hi, I am using dorsal (development version obtained by bzr) on lion with
> clang 3.0
> (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn) but there is a
> compilation error
>
> [29%] Building CXX object dolfin/CMakeFiles/dolfin.dir/graph/ParMETIS.cpp.o
> /Users/sgu/softwares/FEniCS/src/dolfin-1.0.0/dolfin/graph/ParMETIS.cpp: In
> static member function ‘static void
> dolfin::ParMETIS::compute_partition(std::vector<unsigned int,
> std::allocator<unsigned int> >&, const dolfin::LocalMeshData&)’:
> /Users/sgu/softwares/FEniCS/src/dolfin-1.0.0/dolfin/graph/ParMETIS.cpp:116:
> error: cannot convert ‘float*’ to ‘real_t*’ for argument ‘10’ to ‘int
> ParMETIS_V3_PartMeshKway(idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*,
> idx_t*, idx_t*, idx_t*, real_t*, real_t*, idx_t*, idx_t*, idx_t*,
> ompi_communicator_t**)’
> make[2]: *** [dolfin/CMakeFiles/dolfin.dir/graph/ParMETIS.cpp.o] Error 1
> make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2
>
> I notice this recent post https://bugs.launchpad.net/dolfin/+bug/1072704 but
> the error is different. Any advice will be appreciated.
DOLFIN 1.0.0 does not work with ParMETIS 4.0.2, but the development
version does and you can build it by setting STABLE_BUILD=false in
dorsal.cfg.
Johannes
References