call iric_write_sol_end_f(filename, ier)
ier = iRIC_Write_Sol_End(filename);
This function does not exists for Python.