Skip to content
Snippets Groups Projects
Commit 4974c689 authored by Nils Kohl's avatar Nils Kohl :full_moon_with_face:
Browse files

Fixing conversion issues

parent 5ce89f6b
No related merge requests found
......@@ -51,7 +51,7 @@ void FunctionParserOMP::parse(const std::string & eq)
#ifdef _OPENMP
#pragma omp parallel for schedule(static)
#endif
for (int t = 0; t < omp_get_max_threads(); ++t)
for (uint_t t = 0; t < omp_get_max_threads(); ++t)
{
parser_[t].parse(eq);
}
......@@ -61,7 +61,7 @@ double FunctionParserOMP::evaluate(const std::map<std::string,double> & symbolTa
{
WALBERLA_ASSERT_EQUAL(omp_get_max_threads(), num_parsers_);
return parser_[omp_get_thread_num()].evaluate(symbolTable);
return parser_[uint_c(omp_get_thread_num())].evaluate(symbolTable);
}
......
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