More reorganization of refine_smooth routines and making safe
for looping over ncells_ghost in preparation for reducing
communication