Comparison of global and local adaptive coordinates for density-functional calculations