]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/lmm/bmf.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix detection of eigen3.
[simgrid.git] / src / kernel / lmm / bmf.cpp
index 328f1819c49e804f25722152963f4a05bd0cf678..537e8692e55c647ad85e809f9218bfdf8cd038d3 100644 (file)
@@ -4,7 +4,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "src/kernel/lmm/bmf.hpp"
-#include <eigen3/Eigen/LU>
+#include <Eigen/LU>
 #include <iostream>
 #include <numeric>
 #include <sstream>
@@ -69,9 +69,9 @@ BmfSolver::BmfSolver(Eigen::MatrixXd A, Eigen::MatrixXd maxA, Eigen::VectorXd C,
 {
   xbt_assert(max_iteration_ > 0,
              "Invalid number of iterations for BMF solver. Please check your \"bmf/max-iterations\" configuration.");
-  xbt_assert(A_.cols() == maxA_.cols(), "Invalid number of cols in matrix A (%ld) or maxA (%ld)", A_.cols(),
+  xbt_assert(A_.cols() == maxA_.cols(), "Invalid number of cols in matrix A (%td) or maxA (%td)", A_.cols(),
              maxA_.cols());
-  xbt_assert(A_.cols() == static_cast<long>(phi_.size()), "Invalid size of phi vector (%ld)", phi_.size());
+  xbt_assert(A_.cols() == phi_.size(), "Invalid size of phi vector (%td)", phi_.size());
   xbt_assert(static_cast<long>(C_shared_.size()) == C_.size(), "Invalid size param shared (%zu)", C_shared_.size());
 }
 
@@ -483,4 +483,4 @@ template <class CnstList> void BmfSystem::bmf_solve(const CnstList& cnst_list)
 
 } // namespace lmm
 } // namespace kernel
-} // namespace simgrid
\ No newline at end of file
+} // namespace simgrid