Open matekelemen opened 9 months ago
Seems the only function it has is to initialize the DofId to 0 ( I suspect this is legacy from pre C++11 where initializing static member variables directly inside the class was problematic)
Looks a little convoluted with modern C++. Imo, we could just change it to Id=0 in the definition and move along.
Ping @pooyan-dadvand.
What on earth does
KRATOS_DOF_TRAITS
do?https://github.com/KratosMultiphysics/Kratos/blob/86d7a1f8fe1ffbc14029a0fb89a94bf7b2ccd2f0/kratos/includes/dof.h#L32-L57
Preprocessor output:
It also appears in
Dof::GetReference
, but I have even less clue what it does there.https://github.com/KratosMultiphysics/Kratos/blob/86d7a1f8fe1ffbc14029a0fb89a94bf7b2ccd2f0/kratos/includes/dof.h#L457-L481
Any hints?