changed the program termination.
Fixed the SOR solver