I solve the problem adding typedef idx_t idxtype inside the header repartition.hh but is not very elegant. Do you know if this is a bug of the Dune? Best regards, Marco Agnese