(Not recommended) Select triangles using relative tolerance criterion
pdeadgsc is not recommended.
bt = pdeadgsc(p,t,c,a,f,u,errf,tol)
bt = pdeadgsc(p,t,c,a,f,u,errf,tol) returns
indices of triangles to be refined in
bt. Used from
adaptmesh to select the triangles to be further refined. The
geometry of the PDE problem is given by the mesh data
t. For more details, see Mesh Data as [p,e,t] Triples.
u is the current solution, given as a column
errf is the error indicator, as calculated by
tol is a tolerance parameter.
Triangles are selected using the criterion
scale is calculated as follows:
umax be the maximum of
u, respectively. Let
l be the side of the smallest axis-aligned square that contains
scale = max(fmax*l^2,amax*umax*l^2,cmax*umax). The scaling
tol parameter independent of the scaling of the equation
and the geometry.