Adding debugging stuff to adaptivity ex3, do not commit.
Adding Corsini, 2014.