From 33b8f13291ad695176fa95efb3fbd768818d09a4 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 11 Jan 2010 14:08:17 +0000
Subject: [PATCH] add option to save ghost cells

---
 Mesh/meshPartition.cpp      | 4 ++--
 Mesh/meshPartitionOptions.h | 2 ++
 doc/texinfo/gmsh.texi       | 8 ++++----
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/Mesh/meshPartition.cpp b/Mesh/meshPartition.cpp
index 246839dbe3..246ff3c795 100644
--- a/Mesh/meshPartition.cpp
+++ b/Mesh/meshPartition.cpp
@@ -296,8 +296,8 @@ int PartitionMesh(GModel *const model, meshPartitionOptions &options)
 
   model->recomputeMeshPartitions();
 
-  if (options.createPartitionBoundaries)
-    CreatePartitionBoundaries (model, true);
+  if (options.createPartitionBoundaries || options.createGhostCells)
+    CreatePartitionBoundaries (model, options.createGhostCells);
 
   Msg::Info("Partitioning complete");
   Msg::StatusBar(1, false, "Mesh");
diff --git a/Mesh/meshPartitionOptions.h b/Mesh/meshPartitionOptions.h
index 78d4bb796e..12f78efa7c 100644
--- a/Mesh/meshPartitionOptions.h
+++ b/Mesh/meshPartitionOptions.h
@@ -17,6 +17,7 @@ struct meshPartitionOptions
   int renumber;
 
   bool createPartitionBoundaries;
+  bool createGhostCells;
 
 //--Chaco
 
@@ -107,6 +108,7 @@ struct meshPartitionOptions
     edge_matching = 3;
     refine_algorithm = 3;
     createPartitionBoundaries = true;
+    createGhostCells = true;
   }
 
 };
diff --git a/doc/texinfo/gmsh.texi b/doc/texinfo/gmsh.texi
index 06e227e8c8..a36bcf9158 100644
--- a/doc/texinfo/gmsh.texi
+++ b/doc/texinfo/gmsh.texi
@@ -4964,14 +4964,14 @@ image file.
 
 @item How can I save MPEG, AVI, ..., animations?
 
-Yes, using scripts. Have a look at @file{tutorial/t8.geo} or
+Using a script. Have a look at @file{tutorial/t8.geo} or
 @file{demos/anim.script} for some examples.
 
 @item Can I change values in input fields with the mouse in the GUI?
 
 Yes: dragging the mouse in a numeric input field slides the value! The
-left button moves one step per pixel, the middle by 10 * step, and the
-right button by 100 * step.
+left button moves one step per pixel, the middle by `10*step', and the
+right button by `100*step'.
 
 @item Can I copy messages to the clipboard?
 
@@ -5047,7 +5047,7 @@ files in your main project file.
 @item What should I do when the 2D unstructured algorithm fails?
 
 Verify that the curves in the model do not self-intersect. If
-Mesh.RandomFactor * size(triangle)/size(model) approaches machine
+`Mesh.RandomFactor*size(triangle)/size(model)' approaches machine
 accuracy, increase Mesh.RandomFactor.
 
 If everything fails file a bug report with the version of your operating
-- 
GitLab