diff --git a/SimpleTests/MatrixTests/MatMult.cpp b/SimpleTests/MatrixTests/MatMult.cpp index 6266c0365f2048345493b7d7e466fb38bbdb8121..c134f67459a5ab544a953f1d3520b1d96414e5ff 100644 --- a/SimpleTests/MatrixTests/MatMult.cpp +++ b/SimpleTests/MatrixTests/MatMult.cpp @@ -58,8 +58,10 @@ int main(int argc, char *argv[]) #ifdef _OPENMP MathLib::CRSMatrixOpenMP<double, unsigned> mat (n, iA, jA, A, n_threads); + std::cout << "OpenMP matrix class used" << std::endl; #else MathLib::CRSMatrix<double, unsigned> mat (n, iA, jA, A); + std::cout << "matrix class without OpenMP used" << std::endl; #endif // CRSMatrixPThreads<double> mat (n, iA, jA, A, n_threads); std::cout << mat.getNRows() << " x " << mat.getNCols() << std::endl; diff --git a/SimpleTests/MatrixTests/MatVecMultPerm.cpp b/SimpleTests/MatrixTests/MatVecMultPerm.cpp index b41d0fb108c8d891673350ccef0d33d341342180..6de31351feca6d0d76a273eb2f976d642e3d7e42 100644 --- a/SimpleTests/MatrixTests/MatVecMultPerm.cpp +++ b/SimpleTests/MatrixTests/MatVecMultPerm.cpp @@ -131,8 +131,8 @@ int main(int argc, char *argv[]) std::cout << "done [" << cpu_timer.elapsed() << " sec cpu time], [" << run_timer.elapsed() << " sec run time]" << std::endl; } else { - if (argc == 5) { - std::ofstream result_os (argv[4], std::ios::app); + if (argc == 4) { + std::ofstream result_os (argv[3], std::ios::app); if (result_os) { result_os << cpu_timer.elapsed() << "\t" << run_timer.elapsed() << std::endl; }