[MOAB-dev] r4248 - MOAB/trunk/tools/mbcoupler

smithrm at mcs.anl.gov smithrm at mcs.anl.gov
Wed Nov 3 15:59:53 CDT 2010


Author: smithrm
Date: 2010-11-03 15:59:53 -0500 (Wed, 03 Nov 2010)
New Revision: 4248

Modified:
   MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
Log:
o Updated test driver to have more command line options for normalization and file/debug output.
  Global normalization flag is there but the function is not implemented yet in Coupler.


Modified: MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2010-11-02 19:16:19 UTC (rev 4247)
+++ MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2010-11-03 20:59:53 UTC (rev 4248)
@@ -4,9 +4,11 @@
 #include "FileOptions.hpp"
 #include "ReadParallel.hpp"
 #include "Coupler.hpp"
+#include "iMesh_extensions.h"
 #include "moab_mpi.h"
 #include "ElemUtil.hpp"
 #include <iostream>
+#include <iomanip>
 #include <sstream>
 #include <assert.h>
 
@@ -30,47 +32,71 @@
       return result;\
     }
 
+#define PRINT_LAST_ERR \
+    if (iBase_SUCCESS != err) {\
+      std::string tmp_str;\
+      std::cout << "Failure; message:" << std::endl;\
+      mbImpl->get_last_error(tmp_str);\
+      std::cout << tmp_str << std::endl;\
+      MPI_Finalize();                                     \
+      return result;\
+    }
+
+void print_usage();
+
 ErrorCode get_file_options(int argc, char **argv, 
-                             std::vector<const char *> &filenames,
-                             std::string &tag_name,
-                             std::string &out_fname,
-                             std::string &opts);
+                           std::vector<const char *> &meshFiles,
+                           std::string &interpTag,
+                           std::string &gNormTag,
+                           std::string &ssNormTag,
+                           std::vector<const char *> &ssTagNames,
+                           std::vector<const char *> &ssTagValues,
+                           std::string &readOpts,
+                           std::string &outFile,
+                           std::string &writeOpts,
+                           std::string &dbgFile);
 
+// ErrorCode get_file_options(int argc, char **argv, 
+//                              std::vector<const char *> &filenames,
+//                              std::string &tag_name,


More information about the moab-dev mailing list