Closed fgfuchs closed 4 years ago
MPI_Errhandler_create was deprecate in MPI 2 and removed, see https://www.open-mpi.org/faq/?category=mpi-removed#mpi-1-mpi-errhandler-create
diff --git a/tests/cpgrid/zoltan_test.cpp b/tests/cpgrid/zoltan_test.cpp
index ceadb0c..950c9b0 100644
--- a/tests/cpgrid/zoltan_test.cpp
+++ b/tests/cpgrid/zoltan_test.cpp
@@ -97,7 +97,11 @@ BOOST_AUTO_TEST_CASE(zoltan)
Zoltan_Set_Param(zz, "PHG_EDGE_SIZE_THRESHOLD", ".35"); /* 0-remove all, 1-remove none */
MPI_Errhandler handler;
+#ifdef MPI_2
+ MPI_Comm_create_errhandler(MPI_err_handler, &handler);
+#else
MPI_Errhandler_create(MPI_err_handler, &handler);
+#endif
MPI_Errhandler_set(MPI_COMM_WORLD, handler);
MPI_Comm_size(MPI_COMM_WORLD, &procs);
MPI_Comm_rank(MPI_COMM_WORLD, &myRank);
OK, so this means I need to downgrade my openmpi version?
I will create a pull request based on your diff @akva2 . Thanks
Fixed with merge of #367
When I am compiling, I get the following error:
My versions are: openmpi 4.0.1-1 zoltan 3.83-5
Can anybody help me with this?