[MOAB-dev] r5460 - in MOAB/trunk: examples/itaps itaps/imesh

xbxu at mcs.anl.gov xbxu at mcs.anl.gov
Tue Apr 3 13:01:12 CDT 2012


Author: xbxu
Date: 2012-04-03 13:01:12 -0500 (Tue, 03 Apr 2012)
New Revision: 5460

Added:
   MOAB/trunk/examples/itaps/TagIterateC.cpp
   MOAB/trunk/itaps/imesh/testc_cbind.cpp
Removed:
   MOAB/trunk/examples/itaps/TagIterateC.c
   MOAB/trunk/itaps/imesh/testc_cbind.c
Modified:
   MOAB/trunk/examples/itaps/Makefile.am
   MOAB/trunk/itaps/imesh/Makefile.am
Log:
convert c files to c++ files so that the c++ compilers will be
invoked; with this fix, the MOAB is able to run and pass make check on
my MAC (OS10.6.8, gcc4.6.2) with diable-fortran flag set

Modified: MOAB/trunk/examples/itaps/Makefile.am
===================================================================
--- MOAB/trunk/examples/itaps/Makefile.am	2012-04-03 16:39:44 UTC (rev 5459)
+++ MOAB/trunk/examples/itaps/Makefile.am	2012-04-03 18:01:12 UTC (rev 5460)
@@ -15,7 +15,7 @@
 FindConnectF_SOURCES = FindConnectF.F
 FindConnectF_DEPENDENCIES = $(TESTDEPS)
 
-TagIterateC_SOURCES = TagIterateC.c
+TagIterateC_SOURCES = TagIterateC.cpp
 TagIterateC_DEPENDENCIES = $(TESTDEPS)
 
 TagIterateF_SOURCES = TagIterateF.F

Deleted: MOAB/trunk/examples/itaps/TagIterateC.c
===================================================================
--- MOAB/trunk/examples/itaps/TagIterateC.c	2012-04-03 16:39:44 UTC (rev 5459)
+++ MOAB/trunk/examples/itaps/TagIterateC.c	2012-04-03 18:01:12 UTC (rev 5460)
@@ -1,72 +0,0 @@
-/*
- * This program shows how to get a pointer to tag memory, allowing an application to work
- * directly with tag memory instead of calling through the api.
- */
-
-#include "iMesh.h"
-#include "iMesh_extensions.h"
-#include "stdio.h"
-#include "string.h"
-
-#define CHKERR(e, m) if (iBase_SUCCESS != e) {printf(m); return 1;}
-    
-int main( int argc, char *argv[] )
-{
-  iMesh_Instance mesh;
-  iBase_EntitySetHandle root_set;
-  int err;
-  const char *filename;
-  iBase_EntityArrIterator iter;
-  iBase_TagHandle tagh;
-  int count, atend;
-  double *tag_data;
-  int num_regions;
-
-  if (argc == 2) {
-    filename = argv[1];
-  }
-  else {
-    printf("Usage: %s <mesh_filename>\n", argv[0]);
-    return 0;
-  }
-


More information about the moab-dev mailing list