[MOAB-dev] r1348 - MOAB/trunk/tools/dagmc
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Tue Oct 30 14:14:58 CDT 2007
Author: kraftche
Date: 2007-10-30 14:14:57 -0500 (Tue, 30 Oct 2007)
New Revision: 1348
Modified:
MOAB/trunk/tools/dagmc/DagMC.cpp
MOAB/trunk/tools/dagmc/DagMC.hpp
Log:
Add function to get subversion revision as integer
Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp 2007-10-30 18:57:37 UTC (rev 1347)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp 2007-10-30 19:14:57 UTC (rev 1348)
@@ -24,6 +24,7 @@
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
+#include <stdio.h>
#define MB_OBB_TREE_TAG_NAME "OBB_TREE"
#define CATEGORY_TAG_LENGTH 32
@@ -32,6 +33,15 @@
const bool debug = false;
+
+unsigned int DagMC::interface_revision()
+{
+ unsigned int result = 0;
+ sscanf( DAGMC_INTERFACE_REVISION, "$Rev: %u $\n", &result );
+ return result;
+}
+
+
DagMC::DagMC(MBInterface *mb_impl)
: mbImpl(mb_impl), obbTree(mb_impl),
distanceTolerance(1e-6), facetingTolerance(0.001),
Modified: MOAB/trunk/tools/dagmc/DagMC.hpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.hpp 2007-10-30 18:57:37 UTC (rev 1347)
+++ MOAB/trunk/tools/dagmc/DagMC.hpp 2007-10-30 19:14:57 UTC (rev 1348)
@@ -163,6 +163,9 @@
MBEntityHandle facet,
MBEntityHandle surface);
+ /** Get subversion revision of this file (DagMC.hpp) */
+ static unsigned int interface_revision();
+
private:
bool have_obb_tree();
More information about the moab-dev
mailing list