Revert "Fix compilation and add print of DoFs"

This reverts commit 8a8235ad31f2b957082f33632faf7df095882270.