Skip to content

Commit 5747bd7

Browse files
committed
test convergence on non-uniform meshes.
1 parent 4db0fbb commit 5747bd7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

example/fem/Poisson/cubePoisson.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
%% Plot convergence rates
4646
figure;
47-
showrateh3(h,errH1,2,'-*', '$|| Du - Du_h ||', ...
47+
showrateh3(h,errH1,2,'-*', '|| Du - Du_h ||', ...
4848
h,errL2,2,'k-+', '|| u - u_h ||', ...
4949
h,erruIuh,2,'m-+','|| D u_I - D u_h ||');
5050

mesh/cubegradmesh.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
% [node,elem] = cubegradmesh(xh,yh,zh);
1010
% showmesh3(node,elem);
1111
%
12+
% xh = (0:0.125:1).^2;
13+
% yh = (0:0.125:1).^2;
14+
% zh = 0:0.125:0.5;
15+
% [node,elem] = cubegradmesh(xh,yh,zh);
16+
% showmesh3(node,elem);
1217
%
1318
% Copyright (C) Long Chen. See COPYRIGHT.txt for details.
1419

0 commit comments

Comments
 (0)