adding ops_dat->dim so as to keep track of the number of elements per grid point