From 3847e7fe30a07c30c4160fde68c59dfcd9e4d396 Mon Sep 17 00:00:00 2001
From: Lars Hubatsch <hubatsch@pks.mpg.de>
Date: Tue, 20 Oct 2020 14:23:54 +0200
Subject: [PATCH] Changing meshing for moving boundary.

---
 @Ternary_model/create_mesh.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/@Ternary_model/create_mesh.m b/@Ternary_model/create_mesh.m
index 5282414..fc3686c 100644
--- a/@Ternary_model/create_mesh.m
+++ b/@Ternary_model/create_mesh.m
@@ -30,6 +30,8 @@ if strcmp(T.mode, 'Constituent') | T.v == 0
                T.x(ind+21:end)];
     end
 elseif strcmp(T.mode, 'Client') && T.v ~= 0
-    T.x = linspace(0, T.system_size, 24000);
+%     T.x = linspace(0, T.system_size, 24000);
+    T.x = [linspace(0, -T.a-1, 1000), linspace(-T.a-1+0.0001, -T.a+1, 4800),...
+           linspace(-T.a+1+0.0001, T.system_size, 1000)];
 end
 end
-- 
GitLab