added condition for degenerated solution check
changes

add domschke 1995
add condition