From b4d641a4c5799a6c55b094af39c74a763eeabe6a Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 23 Oct 2013 14:01:20 +0000
Subject: [PATCH] uniform mesh by default

---
 tutorial/t13.geo | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/tutorial/t13.geo b/tutorial/t13.geo
index 16f2acb6ec..d03731080e 100644
--- a/tutorial/t13.geo
+++ b/tutorial/t13.geo
@@ -41,11 +41,20 @@ Volume(1) = {1};
 Physical Surface(1) = {s : s + #ss[]-1};
 Physical Volume(1) = 1;
 
-// Apply a funny mesh size field, just because we can :-)
-Field[1] = MathEval;
-Field[1].F = "2*Sin((x+y)/5) + 3";
-Background Field = 1;
+uniform = 1;
+If(uniform)
+  // uniform mesh size...
+  Mesh.CharacteristicLengthMin = 2.5;
+  Mesh.CharacteristicLengthMax = 2.5;
+EndIf
+If(!uniform)
+  // ... or apply a funny mesh size field, just because we can :-)
+  Field[1] = MathEval;
+  Field[1].F = "2*Sin((x+y)/5) + 3";
+  Background Field = 1;
+EndIf
 
 Mesh.RemeshAlgorithm = 1; // (0) no split (1) automatic (2) automatic only with metis
 Mesh.RemeshParametrization = 7; // (0) harmonic (1) conformal spectral (7) conformal finite element
 Geometry.HideCompounds = 0; // don't hide the compound entities
+Mesh.Algorithm = 6; // Frontal
-- 
GitLab