multigrid regular grid grid method cartesian grid gridding heptagrid subgridding matrix polytrope geometrodynamics