[MOAB-dev] r2621 - MOAB/trunk/tools/dagmc
janehu at mcs.anl.gov
janehu at mcs.anl.gov
Mon Feb 2 14:11:52 CST 2009
Author: janehu
Date: 2009-02-02 14:11:52 -0600 (Mon, 02 Feb 2009)
New Revision: 2621
Modified:
MOAB/trunk/tools/dagmc/main.cc
Log:
Back up the main.cc file, not intend to change just now.
Modified: MOAB/trunk/tools/dagmc/main.cc
===================================================================
--- MOAB/trunk/tools/dagmc/main.cc 2009-02-02 20:05:32 UTC (rev 2620)
+++ MOAB/trunk/tools/dagmc/main.cc 2009-02-02 20:11:52 UTC (rev 2621)
@@ -4,8 +4,6 @@
#include "MBCore.hpp"
#include "cgm2moab.hpp"
#include "cubfile.h"
-#include "Tqdcfr.hpp"
-#include "FileOptions.hpp"
#define GF_CUBIT_FILE_TYPE "CUBIT"
#define GF_STEP_FILE_TYPE "STEP"
@@ -160,17 +158,10 @@
exit(2);
}
- MBCore *my_impl = new MBCore();
- Tqdcfr *my_tqd = new Tqdcfr(my_impl);
- MBEntityHandle file_set;
- FileOptions opts(NULL);
-
- MBErrorCode result = my_tqd->load_file(input_name, file_set, opts, 0, 0);
-
- int rvalue = cub_file_type( cub_file, tmp_file, CUB_FILE_ACIS );
+ int rval = cub_file_type( cub_file, tmp_file, CUB_FILE_ACIS );
fclose( cub_file );
fclose( tmp_file );
- if (rvalue) {
+ if (rval) {
remove( temp_name );
free( temp_name );
exit(2);
More information about the moab-dev
mailing list