Skip to content
Snippets Groups Projects
Commit c46d5758 authored by Tom Fischer's avatar Tom Fischer
Browse files

some changes in programming settings for test purposes

parent 09e36256
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
}
......
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