make pw_spline_utils independet from input_constants
make pw_grid_types independet from input_constants