Mesh sampling interface for gruneisen in anharmonic code