moved code in collocation.py:rgcv_error so stuff we can precompute is not done in a loop