[numerics] correct NM_inv test to be compliant with MUMPS and MPI
#include "CSparseMatrix.h"
#include "CSparseMatrix_internal.h"
+
+#ifdef SICONOS_HAS_MPI
+#include <mpi.h>
+#endif
+
+
int add_square_triplet(void);
int add_square_csc(void);
int add_square_triplet_into_csc(void);
@@ -834,8 +840,14 @@ static int inv_test(void)
-int main(void)
+int main(int argc, char *argv[])
{
+
+#ifdef SICONOS_HAS_MPI
+ MPI_Init(&argc, &argv);
+#endif
+
+
int info = add_test();
info += gemm_test();
@@ -846,5 +858,10 @@ int main(void)
info += inv_test();
+#ifdef SICONOS_HAS_MPI
+ MPI_Finalize();
+#endif
+
+
return info;
}
