use a tempalte function to check interface of linear solver stuff