Hi, 
just to let you know that latest gsmh FTBS on Debian stretch. 
You will find attached some patches but there is a still an issue with java 
wrapper : 
wrappers/java/WrappingJava/src/main/java/com/artenum/sample/EssaiGmsh_v1.java 

The clang.patch is just here to enable compilation of gmsh with clang... 

Best 
C 

Christophe TROPHIME 
Research Engineer 

CNRS - LNCMI 
25, rue des Martyrs 
BP 166 
38042 GRENOBLE Cedex 9 
FRANCE 

Tel : +33 (0)4 76 88 90 02 
Fax : +33 (0) 4 76 88 10 01 
Office U 19 
M@il : [email protected] 

Index: gmsh-tetgen-2.12.0/Common/OS.cpp
===================================================================
--- gmsh-tetgen-2.12.0.orig/Common/OS.cpp
+++ gmsh-tetgen-2.12.0/Common/OS.cpp
@@ -405,7 +405,8 @@ std::string GetExecutableFileName()
   }
 #elif defined(__linux__)
   char path[4096];
-  if(readlink("/proc/self/exe", path, 4096) > 0){
+  memset(path, 0, sizeof(path));
+  if(readlink("/proc/self/exe", path, sizeof(path)-1) > 0){
     name = std::string(path);
   }
 #endif
Index: gmsh-tetgen-2.8.3~svn16503/wrappers/java/WrappingJava/src/main/java/com/artenum/sample/EssaiGmsh_v1.java
===================================================================
--- gmsh-tetgen-2.8.3~svn16503.orig/wrappers/java/WrappingJava/src/main/java/com/artenum/sample/EssaiGmsh_v1.java	2013-08-26 17:53:51.000000000 +0200
+++ gmsh-tetgen-2.8.3~svn16503/wrappers/java/WrappingJava/src/main/java/com/artenum/sample/EssaiGmsh_v1.java	2013-08-26 17:54:23.000000000 +0200
@@ -5,6 +5,7 @@
 import org.geuz.gmsh.generated.FaceVector;
 import org.geuz.gmsh.generated.FaceVectorOfVector;
 import org.geuz.gmsh.generated.GEdge;
+import org.geuz.gmsh.generated.GEntity;
 import org.geuz.gmsh.generated.GEntityVector;
 import org.geuz.gmsh.generated.GFace;
 import org.geuz.gmsh.generated.GModel;
Index: gmsh-tetgen-2.8.3~svn16503/wrappers/java/WrapGmsh.i
===================================================================
--- gmsh-tetgen-2.8.3~svn16503.orig/wrappers/java/WrapGmsh.i	2013-08-26 17:53:51.000000000 +0200
+++ gmsh-tetgen-2.8.3~svn16503/wrappers/java/WrapGmsh.i	2013-08-26 17:53:51.000000000 +0200
@@ -106,6 +106,29 @@
 %template (GRegionListIterator) ListIteratorGmsh<GRegion*>;
 
 
+%extend GModel {
+  std::vector<GRegion*> bindingsGetRegions()
+  {
+    return std::vector<GRegion*> ($self->firstRegion(), $self->lastRegion());
+  }
+
+  std::vector<GFace*> bindingsGetFaces()
+  {
+    return std::vector<GFace*> ($self->firstFace(), $self->lastFace());
+  }
+
+  std::vector<GEdge*> bindingsGetEdges()
+  {
+    return std::vector<GEdge*> ($self->firstEdge(), $self->lastEdge());
+  }
+
+  std::vector<GVertex*> bindingsGetVertices()
+  {
+    return std::vector<GVertex*> ($self->firstVertex(), $self->lastVertex());
+  }
+
+}
+
 
 
 
Index: gmsh-tetgen-2.12.0/CMakeLists.txt
===================================================================
--- gmsh-tetgen-2.12.0.orig/CMakeLists.txt
+++ gmsh-tetgen-2.12.0/CMakeLists.txt
@@ -710,13 +710,15 @@ endif(ENABLE_MATHEX)
 if(ENABLE_MPI)
   find_package(MPI)
   if(MPI_FOUND)
+    SET(CMAKE_REQUIRED_INCLUDES "${MPI_INCLUDE_PATH};${CMAKE_REQUIRED_INCLUDES}")
+    INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH})
     set_config_option(HAVE_MPI "MPI")
     list(APPEND EXTERNAL_INCLUDES ${MPI_INCLUDE_DIR})
     list(APPEND EXTERNAL_LIBRARIES ${MPI_LIBRARIES})
-    include(CMakeForceCompiler)
-    # Warning: this actually requires cmake >= 2.8.5
-    cmake_force_c_compiler(${MPI_C_COMPILER} "MPI C Compiler")
-    cmake_force_cxx_compiler(${MPI_CXX_COMPILER} "MPI C++ Compiler")
+    # include(CMakeForceCompiler)
+    # # Warning: this actually requires cmake >= 2.8.5
+    # cmake_force_c_compiler(${MPI_C_COMPILER} "MPI C Compiler")
+    # cmake_force_cxx_compiler(${MPI_CXX_COMPILER} "MPI C++ Compiler")
   endif(MPI_FOUND)
 endif(ENABLE_MPI)
 
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gmsh-tetgen (2.12.0-1) usntable; urgency=medium
 .
   * new upstream release
Author: Christophe Trophime <[email protected]>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- gmsh-tetgen-2.12.0.orig/doc/texinfo/gmsh.texi
+++ gmsh-tetgen-2.12.0/doc/texinfo/gmsh.texi
@@ -1008,7 +1008,7 @@ parsing of the script file:
   Exists(@var{string}) | Exists(@var{string}~@{ @var{expression} @}) |
   FileExists(@var{char-expression}) |
   StringToName(@var{char-expression}) | S2N(@var{char-expression}) |
-  GetNumber(@var{char-expression} <,@{expression}>) |
+  GetNumber(@var{char-expression} <,@var{expression}>) |
   GetValue("@var{string}", @var{expression}) |
   DefineNumber(@var{expression}, @var{onelab-options}) |
 @end example
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to