Closed maceligueta closed 5 years ago
hm I ran the tests in FullDebug this afternoon, nothing suspicious ... Also this code has been unchanged for a while I think
I think I found the problem: https://github.com/KratosMultiphysics/Kratos/blob/372671c85bb3533a9d6fe445059c24104c839851/kratos/includes/ublas_interface.h#L80 ZeroVector is for doubles only, maybe that's the reason why vector_assign is complaining...
oh yes this seems to be the reason
@KlausBSautter in this case BoundedVector is not suitable anyway, an std::vector<bool>
would be better
Thanks @maceligueta !
What is the problem with a bounded vector here? I know the size will always be 2
Yes, the size is correct, but apparently ZeroVector is only compatible with vectors of doubles, not vectors of bools. I don’t know how to fix the problem using the tools in ublas_interface.h. Maybe we should create a FalseVector in the same way ZeroVector is defined...
I will speak to you later Klaus then we can figure it out ;)
Thanks, @KlausBSautter and @philbucher !
I am getting:
The code exits, so no stacktrace is printed, however, I think I managed to stop the code at the message, and received the following stacktrace:
I guess one of those vectors is giving problems: https://github.com/KratosMultiphysics/Kratos/blob/372671c85bb3533a9d6fe445059c24104c839851/applications/StructuralMechanicsApplication/custom_constitutive/truss_plasticity_constitutive_law.h#L221
Referencing @KratosMultiphysics/structural-mechanics and @KlausBSautter