debugging linear solver