shared memory fix for solveF2