Skip to content
Snippets Groups Projects
Commit 1f13d183 authored by Lars Hubatsch's avatar Lars Hubatsch
Browse files

Make mesh more precise close to zero to have good agreement with Stefano.

parent 43e91d00
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ function create_mesh(T)
if strcmp(T.mode, 'Constituent') || strcmp(T.mode, 'Const_mob') || T.v == 0
% Start with left side of mesh, at r=0/x=0, with a given step size
x = linspace(0, -0.75*T.a, 40);
x = linspace(0, -0.75*T.a, 200);
x = [x, x(end)+0.001/T.precision];
while x(end)<-T.a
x_temp = x(end)-x(end-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment