make plot2d_compdomain work with cpgrids