From 9a886e0634c4db4c82f67ba73d1ab134a3c57bbf Mon Sep 17 00:00:00 2001
From: Guillaume Demesy <guillaume.demesy@fresnel.fr>
Date: Thu, 21 Nov 2019 13:05:51 +0100
Subject: [PATCH] run all

---
 DiffractionGratings/grating3D.geo       | 6 +++++-
 DiffractionGratings/grating3D_runall.sh | 4 ++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/DiffractionGratings/grating3D.geo b/DiffractionGratings/grating3D.geo
index a7b2a98..84c6cda 100644
--- a/DiffractionGratings/grating3D.geo
+++ b/DiffractionGratings/grating3D.geo
@@ -201,7 +201,11 @@ list_lc(8) = lc_scat;
 
 // This helps meshing: The default behavior of the PointsOf techinque
 // overides points belonging to several domains
-meshing_sequence() = {1,8,2,3,5,6,7,4,9};
+If (tag_geom==7)
+  meshing_sequence() = {1,8,2,3,5,6,7,4,9};
+Else
+    meshing_sequence() = {1,8,2,3,4,6,7,5,9};
+EndIf
 
 // Start with coarsest
 Characteristic Length{:} = lc_PML;
diff --git a/DiffractionGratings/grating3D_runall.sh b/DiffractionGratings/grating3D_runall.sh
index 823b749..6968b90 100644
--- a/DiffractionGratings/grating3D_runall.sh
+++ b/DiffractionGratings/grating3D_runall.sh
@@ -1,5 +1,5 @@
-for t in bisin checker halfellipsoid hole pyramid torus
+for t in bisin checker halfellipsoid hole pyramid torus 2Dlamellar
 do
-    gmsh grating3D.pro -setstring test_case $t
+    gmsh grating3D.pro -setstring test_case $t -
     mv res3D res3D_$t
 done
\ No newline at end of file
-- 
GitLab