
function [gx, gy] = routGid_to_routGxGy ( gid, max_clm_idx )

gy = mod ( gid , max_clm_idx ) ;
gx = floor ( (gid - gy) / max_clm_idx ) ;
