Restore the cell nummber without functions in the refine.cc and equation.h files