You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is with the two tree() functions. The stored datatype is EliminationTreeMPIDist<scalar_t,integer_t>, while the return is EliminationTree<scalar_t,integer_t>. This would be okay, since the former is derived from the latter, if the definition for EliminationTreeMPIDist<scalar_t,integer_t> were present in this file, or where it is used. However, all that is present here is the forward declaration of the two datatypes. Thus, the compiler (in this case Microsoft Visual C++) can not determine that they are related to each other. This results in:
error C2440: 'return': cannot convert from 'strumpack::EliminationTreeMPIDist<scalar_t,integer_t> *' to 'const strumpack::EliminationTree<scalar_t,integer_t> *'
This occurs in every file that does not also include "EliminationTreeMPIDist.hpp".
This file is being included in our larger project which is using Strumpack, and adding the extra file is less than desirable.
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out.
Unfortunately we don't have the time or resources right now to test on windows.
I hope this commit fixes the problem for you?
In StrumpackSparseSolverMPIDist.hpp there is this block of code on or about line 305:
The issue is with the two tree() functions. The stored datatype is EliminationTreeMPIDist<scalar_t,integer_t>, while the return is EliminationTree<scalar_t,integer_t>. This would be okay, since the former is derived from the latter, if the definition for EliminationTreeMPIDist<scalar_t,integer_t> were present in this file, or where it is used. However, all that is present here is the forward declaration of the two datatypes. Thus, the compiler (in this case Microsoft Visual C++) can not determine that they are related to each other. This results in:
error C2440: 'return': cannot convert from 'strumpack::EliminationTreeMPIDist<scalar_t,integer_t> *' to 'const strumpack::EliminationTree<scalar_t,integer_t> *'
This occurs in every file that does not also include "EliminationTreeMPIDist.hpp".
This file is being included in our larger project which is using Strumpack, and adding the extra file is less than desirable.
The text was updated successfully, but these errors were encountered: