[MOAB-dev] r4215 - MOAB/trunk/tools/mbcoupler
smithrm at mcs.anl.gov
smithrm at mcs.anl.gov
Wed Oct 13 10:46:52 CDT 2010
Author: smithrm
Date: 2010-10-13 10:46:52 -0500 (Wed, 13 Oct 2010)
New Revision: 4215
Modified:
MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
Log:
o Restoring contents of file.
o Added declarations of new LinearHex and LinearTet objects.
Modified: MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp 2010-10-13 13:24:23 UTC (rev 4214)
+++ MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp 2010-10-13 15:46:52 UTC (rev 4215)
@@ -1,3 +1,10 @@
+#include "moab/ParallelComm.hpp"
+#include "MBParallelConventions.h"
+#include "moab/Core.hpp"
+#include "FileOptions.hpp"
+#include "ReadParallel.hpp"
+#include "Coupler.hpp"
+#include "moab_mpi.h"
#include "ElemUtil.hpp"
#include <iostream>
#include <sstream>
@@ -3,11 +10,306 @@
#include <assert.h>
+using namespace moab;
+bool debug = false;
+
+#define RRA(a) if (MB_SUCCESS != result) {\
+ std::string tmp_str; mbImpl->get_last_error(tmp_str);\
+ tmp_str.append("\n"); tmp_str.append(a);\
+ dynamic_cast<Core*>(mbImpl)->get_error_handler()->set_last_error(tmp_str.c_str()); \
+ return result;}
+
+#define PRINT_LAST_ERROR \
+ if (MB_SUCCESS != result) {\
+ 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;\
+ }
+
+ErrorCode get_file_options(int argc, char **argv,
+ std::vector<const char *> &filenames,
+ std::string &tag_name,
+ std::string &out_fname,
+ std::string &opts);
+
+ErrorCode report_iface_ents(Interface *mbImpl,
+ std::vector<ParallelComm *> &pcs,
+ bool print_results);
+
+ErrorCode test_interpolation(Interface *mbImpl,
+ std::string &interp_tag,
+ std::vector<ParallelComm *> &pcs,
More information about the moab-dev
mailing list