Hi,
I agree with Riccardo's advice. If you are still curious, in the DEM application we use local flags. They are created using the macros:
KRATOS_DEFINE_LOCAL_FLAG (you can find how we use it in DEM_application_variables.h)
KRATOS_CREATE_LOCAL_FLAG (you can find it in DEM_application.cpp)
The problem arises when you are coupling two different applications, both sharing some nodes and both decided to use the second bit of the flags of the node for their own purpose. For instance, SolidMechanics uses the second bit for IS_CALCULATED, but Thermal uses the second bit for IS_BOUNDARY_CONDITION. If the plan is to use the same object in different applications you can get into trouble.
Best regards,
Miguel Angel