[MOAB-dev] r5311 - in MOAB/trunk: itaps/igeom src src/moab test

iulian at mcs.anl.gov iulian at mcs.anl.gov
Wed Jan 11 16:34:10 CST 2012


Author: iulian
Date: 2012-01-11 16:34:09 -0600 (Wed, 11 Jan 2012)
New Revision: 5311

Modified:
   MOAB/trunk/itaps/igeom/FBiGeom.h
   MOAB/trunk/itaps/igeom/testSmooth.cc
   MOAB/trunk/itaps/igeom/testSmooth2.cc
   MOAB/trunk/src/FBEngine.cpp
   MOAB/trunk/src/moab/FBEngine.hpp
   MOAB/trunk/test/mbground_test.cpp
Log:
correct a bug introduced by my previous commit
when a boundary mesh edge is split, we need a new method to construct the 
new geometry boundary edges.
add the test that would have caught the error earlier
remove some compile warnings


Modified: MOAB/trunk/itaps/igeom/FBiGeom.h
===================================================================
--- MOAB/trunk/itaps/igeom/FBiGeom.h	2012-01-11 20:33:34 UTC (rev 5310)
+++ MOAB/trunk/itaps/igeom/FBiGeom.h	2012-01-11 22:34:09 UTC (rev 5311)
@@ -59,7 +59,7 @@
 
 #include "iBase.h"
 #include "FBiGeom_protos.h"
-//#include "iMesh.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -3988,7 +3988,7 @@
                        int *err);
 
 #ifdef __cplusplus
-} // extern "C"
+} /* extern "C" */
 #endif
 
 #endif

Modified: MOAB/trunk/itaps/igeom/testSmooth.cc
===================================================================
--- MOAB/trunk/itaps/igeom/testSmooth.cc	2012-01-11 20:33:34 UTC (rev 5310)
+++ MOAB/trunk/itaps/igeom/testSmooth.cc	2012-01-11 22:34:09 UTC (rev 5311)
@@ -309,7 +309,7 @@
 
 bool smooth_test(const std::string filename, FBiGeom_Instance geom) {
    int err;
-   char * opts = "SMOOTH;";
+   char opts[] = "SMOOTH;";
    FBiGeom_load(geom, &filename[0], opts, &err, filename.length(), 8);
    //FBiGeom_load( geom, &filename[0], 0, &err, filename.length(), 0 );
    CHECK( "ERROR : can not load a geometry" );

Modified: MOAB/trunk/itaps/igeom/testSmooth2.cc
===================================================================
--- MOAB/trunk/itaps/igeom/testSmooth2.cc	2012-01-11 20:33:34 UTC (rev 5310)
+++ MOAB/trunk/itaps/igeom/testSmooth2.cc	2012-01-11 22:34:09 UTC (rev 5311)
@@ -329,7 +329,7 @@
 
 bool smooth_test(const std::string filename, FBiGeom_Instance geom) {
    int err;
-   char * opts = "SMOOTH;";
+   char opts[] = "SMOOTH;";
    FBiGeom_load(geom, &filename[0], opts, &err, filename.length(), 8);
    //FBiGeom_load( geom, &filename[0], 0, &err, filename.length(), 0 );
    CHECK( "ERROR : can not load a geometry" );



More information about the moab-dev mailing list