Skip to content
Snippets Groups Projects
Commit fc9407c9 authored by wenqing's avatar wenqing
Browse files

Try to fix the compiler error on travis, add a template argument for a...

Try to fix the compiler error on travis, add a template argument for a DenseMatrix instance in the test fucntion
parent 8ecde5f1
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ void checkGlobalMatrixInterface(T_MATRIX &m) ...@@ -42,7 +42,7 @@ void checkGlobalMatrixInterface(T_MATRIX &m)
m.add(0, 0, 1.0); m.add(0, 0, 1.0);
m.setZero(); m.setZero();
MathLib::DenseMatrix<double, short> local_m(2,2, 1.0); MathLib::DenseMatrix<double, short> local_m(2, 2, 1.0);
std::vector<std::size_t> vec_pos(2); std::vector<std::size_t> vec_pos(2);
vec_pos[0] = 1; vec_pos[0] = 1;
vec_pos[1] = 3; vec_pos[1] = 3;
...@@ -70,7 +70,7 @@ void checkGlobalMatrixInterfaceMPI(T_MATRIX &m, T_VECTOR &v) ...@@ -70,7 +70,7 @@ void checkGlobalMatrixInterfaceMPI(T_MATRIX &m, T_VECTOR &v)
ASSERT_EQ(6u, gathered_cols); ASSERT_EQ(6u, gathered_cols);
// Add entries // Add entries
MathLib::DenseMatrix<double> loc_m(2); MathLib::DenseMatrix<double, short> loc_m(2);
loc_m(0, 0) = 1.; loc_m(0, 0) = 1.;
loc_m(0, 1) = 2.; loc_m(0, 1) = 2.;
loc_m(1, 0) = 3.; loc_m(1, 0) = 3.;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment