Fixing bug with solver workspace allocation in 3D

Offering up fix for a bug I had to fix in my local copy during my thesis work, then forgot about.