Skip to content
Snippets Groups Projects
Commit bfb73dff authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm obsolete casts

parent 29814c93
No related branches found
No related tags found
1 merge request!232Cleanup in context of Simulation, Computation; *Element now inherits from IElement
...@@ -37,7 +37,7 @@ size_t getIndexStep(size_t total_size, size_t n_handlers) ...@@ -37,7 +37,7 @@ size_t getIndexStep(size_t total_size, size_t n_handlers)
size_t getStartIndex(size_t n_handlers, size_t current_handler, size_t n_elements) size_t getStartIndex(size_t n_handlers, size_t current_handler, size_t n_elements)
{ {
const size_t handler_size = getIndexStep(n_elements, static_cast<size_t>(n_handlers)); const size_t handler_size = getIndexStep(n_elements, n_handlers);
const size_t start_index = current_handler * handler_size; const size_t start_index = current_handler * handler_size;
if (start_index >= n_elements) if (start_index >= n_elements)
return n_elements; return n_elements;
...@@ -46,7 +46,7 @@ size_t getStartIndex(size_t n_handlers, size_t current_handler, size_t n_element ...@@ -46,7 +46,7 @@ size_t getStartIndex(size_t n_handlers, size_t current_handler, size_t n_element
size_t batchSize(size_t n_handlers, size_t current_handler, size_t n_elements) size_t batchSize(size_t n_handlers, size_t current_handler, size_t n_elements)
{ {
const size_t handler_size = getIndexStep(n_elements, static_cast<size_t>(n_handlers)); const size_t handler_size = getIndexStep(n_elements, n_handlers);
const size_t start_index = current_handler * handler_size; const size_t start_index = current_handler * handler_size;
if (start_index >= n_elements) if (start_index >= n_elements)
return 0; return 0;
......
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