No major changes were added
Refinement function was declared and inplemented for adaptivity