change ndim to 2 in dpd/dpd2d