Why ?Try to get unset x,y,

Good morning. The code can run in 2D, but it can’t run in 3D. I found that the original line of code can’t run in 3D. The code is as follows

if(psai0>=1-k)
{
Eq1;
}
psai0=psai1;

psai0 is a finite element function, to get a value you need to set x,y or x,y,z.