shared memory fix for solveF2
fixed bug in solveF2