getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] r4876 - in /trunk/getfem: doc/sphinx/source/matlab/exam


From: Yves . Renard
Subject: [Getfem-commits] r4876 - in /trunk/getfem: doc/sphinx/source/matlab/examples.rst interface/src/gf_mesh.cc interface/src/gf_mesher_object.cc
Date: Tue, 10 Mar 2015 11:18:49 -0000

Author: renard
Date: Tue Mar 10 12:18:47 2015
New Revision: 4876

URL: http://svn.gna.org/viewcvs/getfem?rev=4876&view=rev
Log:
minor changes

Modified:
    trunk/getfem/doc/sphinx/source/matlab/examples.rst
    trunk/getfem/interface/src/gf_mesh.cc
    trunk/getfem/interface/src/gf_mesher_object.cc

Modified: trunk/getfem/doc/sphinx/source/matlab/examples.rst
URL: 
http://svn.gna.org/viewcvs/getfem/trunk/getfem/doc/sphinx/source/matlab/examples.rst?rev=4876&r1=4875&r2=4876&view=diff
==============================================================================
--- trunk/getfem/doc/sphinx/source/matlab/examples.rst  (original)
+++ trunk/getfem/doc/sphinx/source/matlab/examples.rst  Tue Mar 10 12:18:47 2015
@@ -20,10 +20,9 @@
 the **m-file** of this example under the name **demo_step_by_step.m** in the 
 directory ``interface/tests/matlab/`` of the |gf| distribution.
 
-The first step is to **create a mesh**. Since |gf| does not come with its own 
-mesher, one has to rely on an external mesher (see ``gf_mesh('import', string 
-FORMAT, string FILENAME))``), or use very simple meshes.  For this example, we 
-just consider a regular mesh\index{cartesian mesh} whose nodes are 
+The first step is to **create a mesh**. It is possible to create simple 
structured meshes or unstructured meshes for simple geometries (see 
``gf_mesh('generate', mesher_object mo, scalar h))``) or to rely on an external 
mesher (see ``gf_mesh('import', string 
+FORMAT, string FILENAME))``).  For this example, we 
+just consider a regular **cartesian mesh** whose nodes are 
 :math:`\{x_{i=0\ldots10,j=0..10}=(i/10,j/10)\}`::
 
   >> % creation of a simple cartesian mesh

Modified: trunk/getfem/interface/src/gf_mesh.cc
URL: 
http://svn.gna.org/viewcvs/getfem/trunk/getfem/interface/src/gf_mesh.cc?rev=4876&r1=4875&r2=4876&view=diff
==============================================================================
--- trunk/getfem/interface/src/gf_mesh.cc       (original)
+++ trunk/getfem/interface/src/gf_mesh.cc       Tue Mar 10 12:18:47 2015
@@ -245,7 +245,7 @@
   const getfem::mesh *src_mesh = in.pop().to_const_mesh();
   size_type nblay = in.pop().to_integer(1,2500000);
   short_type degree(1);
-  if (in.remaining()) degree = in.pop().to_integer(1,2500000);
+  if (in.remaining()) degree = short_type(in.pop().to_integer(1,2500000));
   getfem::extrude(*src_mesh, *dest_mesh, nblay, degree);
 }
 
@@ -493,20 +493,21 @@
        );
 
     /address@hidden M = ('generate', @tmo mo, @scalar h[, @int K = 1[, @mat 
vertices]])
-      Call the (very) experimental mesher of Getfem on the geometry
+      Call the experimental mesher of Getfem on the geometry
       represented by `mo`. please control the conformity of the produced mesh.
-      You can add the mesher by adding a priori vertices in the array
+      You can help the mesher by adding a priori vertices in the array
       `vertices` which should be of size ``n x m`` where ``n`` n is the
       dimension of the mesh and ``m`` the number of points. `h` is
       approximate diameter of the elements. `K` is the degree of the
       mesh ( > 1 for curved boundaries).  The mesher try to optimize the
       quality of the elements. This operation may be time consuming.
       Note that if the mesh generation fails, because of some random
-      procedure used, it will not give necessarily the same result due
-      to random procedures used.
+      procedure used, it can be run again since it will not give necessarily
+      the same result due to random procedures used.
       The messages send to the console by the mesh generation can be
       desactivated using `gf_util('trace level', 2)`. More information
-      can be obtained by `gf_util('trace level', 4)`.
+      can be obtained by `gf_util('trace level', 4)`. See 
``MESHER_OBJECT:INIT``
+      to manipulate geometric primitives in order to desribe the geometry.
       @*/
     sub_command
       ("generate", 2, 4, 0, 1,

Modified: trunk/getfem/interface/src/gf_mesher_object.cc
URL: 
http://svn.gna.org/viewcvs/getfem/trunk/getfem/interface/src/gf_mesher_object.cc?rev=4876&r1=4875&r2=4876&view=diff
==============================================================================
--- trunk/getfem/interface/src/gf_mesher_object.cc      (original)
+++ trunk/getfem/interface/src/gf_mesher_object.cc      Tue Mar 10 12:18:47 2015
@@ -31,7 +31,7 @@
 using namespace getfemint;
 
 /address@hidden
-  This object represents a geometric object to be meshed by the (very)
+  This object represents a geometric object to be meshed by the
   experimental meshing procedure of Getfem.
 @*/
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]