initial commit for rhs_func.h. added associated function calls to gs_solver