[MOAB-dev] Fwd: Re: r4009 - in MOAB/trunk: examples src src/io src/moab
Tim Tautges
tautges at mcs.anl.gov
Thu Jun 17 18:07:41 CDT 2010
Hi all,
The commit I just made breaks the build; I'm testing something I added to CGM, after I commit that you'll need to
update your cgm (if you're building with the cgm reader).
Sorry 'bout that.
- tim
-------- Original Message --------
Subject: Re: [MOAB-dev] r4009 - in MOAB/trunk: examples src src/io src/moab
Date: Thu, 17 Jun 2010 17:56:08 -0500 (CDT)
From: Iulian Grindeanu <iulian at mcs.anl.gov>
To: moab-dev at mcs.anl.gov
Hi Tim,
I am getting an error in building MOAB
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/moab -I../../src/parallel -I../../src
-I/homes/sharp/3rdparty/hdf5/hdf5-1.8.3/serial/gcc//include -isystem
/homes/sharp/3rdparty/hdf5/hdf5-1.8.3/serial/gcc//include -DTEMPLATE_SPECIALIZATION -DTEMPLATE_FUNC_SPECIALIZATION
-DHAVE_VSNPRINTF -D_FILE_OFFSET_BITS=64 -DHDF5_FILE -DNETCDF_FILE -DCGM -DIS_BUILDING_MB -I.. -I./.. -I./../parallel
-I./mhdf/include -DTEMPLATE_DEFS_INCLUDED -DHAVE_ACIS -I/homes/iulian/lib/CGMCubit/include -DCGM -DVALGRIND
-DUNORDERED_MAP_NS=std::tr1 -DHAVE_UNORDERED_MAP=tr1/unordered_map -Wall -pipe -g -MT ReadCGM.lo -MD -MP -MF
.deps/ReadCGM.Tpo -c ReadCGM.cpp -o ReadCGM.o
ReadCGM.cpp: In destructor 'virtual moab::ReadCGM::~ReadCGM()':
ReadCGM.cpp:101: error: 'deinitialize_cgma' is not a member of 'InitCGMA'
make[5]: *** [ReadCGM.lo] Error 1
make[5]: Leaving directory `/nfs/mcs-homes129/iulian/source/MOAB/src/io'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/nfs/mcs-homes129/iulian/source/MOAB/src/io'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/nfs/mcs-homes129/iulian/source/MOAB/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/nfs/mcs-homes129/iulian/source/MOAB/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/nfs/mcs-homes129/iulian/source/MOAB'
Does something need to be updated in CGM too?
InitCGMA.hpp etc...
Thanks,
Iulian
----- Original Message -----
From: tautges at mcs.anl.gov
To: moab-dev at mcs.anl.gov
Sent: Thursday, June 17, 2010 5:19:47 PM GMT -06:00 US/Canada Central
Subject: [MOAB-dev] r4009 - in MOAB/trunk: examples src src/io src/moab
Author: tautges
Date: 2010-06-17 17:19:47 -0500 (Thu, 17 Jun 2010)
New Revision: 4009
Modified:
MOAB/trunk/examples/GeomSetHierarchy.cpp
MOAB/trunk/examples/README
MOAB/trunk/src/GeomTopoTool.cpp
MOAB/trunk/src/io/ReadCGM.cpp
MOAB/trunk/src/moab/GeomTopoTool.hpp
Log:
Adding edge-face sense to cgm reader. Will update documentation when it's ready,
not quite there yet.
Modified: MOAB/trunk/examples/GeomSetHierarchy.cpp
===================================================================
--- MOAB/trunk/examples/GeomSetHierarchy.cpp 2010-06-17 21:39:41 UTC (rev 4008)
+++ MOAB/trunk/examples/GeomSetHierarchy.cpp 2010-06-17 22:19:47 UTC (rev 4009)
@@ -1,8 +1,12 @@
-#include "MBCore.hpp"
-#include "MBRange.hpp"
+#include "moab/Core.hpp"
+#include "moab/Range.hpp"
#include "MBCN.hpp"
+#include "MBTagConventions.hpp"
+#include "moab/GeomTopoTool.hpp"
#include <iostream>
+const char *ent_names[] = {"Vertex", "Edge", "Face", "Region"};
+
int main(int argc, char **argv) {
if (1 == argc) {
std::cout << "Usage: " << argv[0] << " <filename>" << std::endl;
@@ -10,34 +14,67 @@
}
// instantiate & load a file
- MBInterface *mb = new MBCore();
- MBErrorCode rval = mb->load_file(argv[1]);
+ moab::Interface *mb = new moab::Core();
+ moab::ErrorCode rval = mb->load_file(argv[1]);
// get the geometric topology tag handle
- MBTag geom_tag;
- rval = mb->tag_get_handle("GEOM_DIMENSION", geom_tag);
+ moab::Tag geom_tag, gid_tag;
+ rval = mb->tag_get_handle(GEOM_DIMENSION_TAG_NAME, geom_tag);
+ rval = mb->tag_get_handle(GLOBAL_ID_TAG_NAME, gid_tag);
// traverse the model, from dimension 3 downward
- MBRange psets, chsets;
- int dim;
+ moab::Range psets, chsets;
+ std::vector<moab::EntityHandle> sense_ents;
+ std::vector<int> senses, pgids;
+ int dim, pgid, chgid;
void *dim_ptr = &dim;
+ bool sense;
+
+ moab::GeomTopoTool gt(mb, true);
+
for (dim = 3; dim >= 0; dim--) {
// get parents at this dimension
- psets.clear();
+ chsets.clear();
More information about the moab-dev
mailing list