Partial Differential Equations Toolbox    
pdeadworst

Select triangles relative to the worst value.

Synopsis

Description
bt=pdeadworst(p,t,c,a,f,u,errf,wlevel) 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 p and t. See the entry on initmesh for more details.

c, a, and f are PDE coefficients. See the entry on assempde for details.

u is the current solution, given as a column vector. See the entry on assempde for details.

errf is the error indicator, as calculated by pdejmps.

wlevel is the error level relative to the worst error. wlevel must be between 0 and 1.

Triangles are selected using the criterion errf>wlevel*max(errf).

See Also
adaptmesh, pdejmps



pdeadgsc pdearcl