1 function guess = Usmoothguess(mesh,new,old,Dsides);
3 % guess = Usmoothguess(mesh,new,old,Dsides);
5 if ~isfield("mesh","wjacdet")
6 mesh = Umeshproperties(mesh);
9 Nelements = columns(mesh.t);
10 Nnodes = columns(mesh.p);
12 Dnodes = Unodesonside(mesh,Dsides);
13 varnodes = setdiff([1:Nnodes]',Dnodes);
16 A = Ucomplap(mesh,ones(Nelements,1));
17 Aie = A(varnodes,Dnodes);
18 Aii = A(varnodes,varnodes);
20 guess(varnodes) = Aii\(-Aie*(new(Dnodes)-old(Dnodes))+Aii*old(varnodes));