| Partial Differential Equations Toolbox | ![]() |
Select triangles relative to the worst value.
bt=pdeadworst(p,t,c,a,f,u,errf,wlevel)
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.
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).
![]() | pdeadgsc | pdearcl | ![]() |