Skip to content
Snippets Groups Projects
Commit f02e55ae authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Python BHE BC; Avoid implicity conversion.

Avoid implicit narrowing conversion from Eigen::IndexType
to an int.

warning C4244: 'initializing': conversion from 'const _Ty' to '_Objty', possible loss of data
807         with
808         [
809             _Ty=MathLib::EigenVector::IndexType
810         ]
811         and
812         [
813             _Objty=int
814         ]
parent f3b0d027
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ public: ...@@ -41,7 +41,7 @@ public:
_bhe(bhe), _bhe(bhe),
_py_bc_object(py_bc_object) _py_bc_object(py_bc_object)
{ {
const auto g_idx_T_out = in_out_global_indices.second; const auto g_idx_T_out = static_cast<int>(in_out_global_indices.second);
// store the bc node ids to BHE network dataframe // store the bc node ids to BHE network dataframe
std::get<3>(_py_bc_object.dataframe_network).emplace_back(g_idx_T_out); std::get<3>(_py_bc_object.dataframe_network).emplace_back(g_idx_T_out);
......
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