Turns out I didn't have autoslice completely incorporated after all. I had to make some somewhat major additions. I don't know if they are correct. I really need to check that.

I am also extrememly worried that vk is not being set correctly in fem_update. sum_int_sq isn't updated in fem_update once it is set to 0 but it is used when you get Vk(i).... That seems like a big problem.