Start changes to compute local and global indices for global dofs.