Kratos: Compile error in SolidMechanicsApplication

Created on 4 Jul 2018  Â·  3Comments  Â·  Source: KratosMultiphysics/Kratos

Has something changed in the approximately the last week or so in compiling? I am getting the following error when building:

In file included from /kratos/applications/SolidMechanicsApplication/custom_conditions/load_conditions/load_condition.cpp:15:0:
/kratos/applications/SolidMechanicsApplication/custom_conditions/load_conditions/load_condition.hpp: In member function ‘virtual bool Kratos::LoadCondition::HasVariableDof(Kratos::BoundaryCondition::VariableVectorType&)’:
/kratos/applications/SolidMechanicsApplication/custom_conditions/load_conditions/load_condition.hpp:148:23: error: ‘ROTATION’ was not declared in this scope
       if(rVariable == ROTATION)

Thanks in advance!

All 3 comments

I don't know exactly what has changed, I have not detected the compilation error, try to add:

include "includes/variables.h"

in load_condition.hpp

Thanks @josep-m-carbonell!

As suggested, I added the following line:

include "includes/variables.h"

to these files
/kratos/applications/SolidMechanicsApplication/custom_conditions/load_conditions/load_condition.hpp
/kratos/applications/SolidMechanicsApplication/custom_conditions/elastic_conditions/elastic_condition.hpp
That fixed 'er!

Please, can you make a PR with the changes?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gaoliu19910601 picture Gaoliu19910601  Â·  6Comments

KlausBSautter picture KlausBSautter  Â·  6Comments

ipouplana picture ipouplana  Â·  7Comments

ipouplana picture ipouplana  Â·  6Comments

maceligueta picture maceligueta  Â·  6Comments