Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
luna
LuNA
Commits
3d189c62
Commit
3d189c62
authored
Jul 05, 2019
by
Sergey Kireev
Browse files
getValue<double>() implemented, threads set to 1
parent
b96e4931
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/config.h
View file @
3d189c62
...
...
@@ -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
;
...
...
include/df.h
View file @
3d189c62
...
...
@@ -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
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment