wrote over sparse grid to change from lcoal adaptation to dimension adaptation. This may be trouble and I may need to revert to previous revision