fixed bug riccati fortran interface