Commit 3d189c62 authored by Sergey Kireev's avatar Sergey Kireev
Browse files

getValue<double>() implemented, threads set to 1

parent b96e4931
......@@ -4,7 +4,7 @@
#include <vector>
const unsigned int
DEFAULT_WORKER_THREADS_COUNT=4,
DEFAULT_WORKER_THREADS_COUNT=1,
DEFAULT_COMM_REQUEST_THREADS_COUNT=1,
DEFAULT_COMM_RECEIVE_THREADS_COUNT=1;
......
......@@ -150,6 +150,11 @@ public:
ABORT("not an int: " + to_string());
}
return *static_cast<const T*>(ptr_);
} else if (std::is_same<T, double>::value) {
if (type_!=TYPE_REAL) {
ABORT("not an real: " + to_string());
}
return *static_cast<const T*>(ptr_);
} else {
ABORT("getValue<" + std::string(typeid(T).name()) + ">() failed for " + to_string());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment