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

iulian at mcs.anl.gov iulian at mcs.anl.gov
Fri Aug 10 11:03:29 CDT 2012


Author: iulian
Date: 2012-08-10 11:03:29 -0500 (Fri, 10 Aug 2012)
New Revision: 5690

Modified:
   MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
Log:
change the test so that we can specify the absolute tolerance for point location at the 
command line.
A test of 2 meshes created for nuscale model was successful only if the specified
tolerance is 1.e-1; for a tolerance of 1.e-2, there were still 45000 points missing out of
~ 2 milion.
Needs more testing and investigation :( 


Modified: MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2012-08-09 01:18:16 UTC (rev 5689)
+++ MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2012-08-10 16:03:29 UTC (rev 5690)
@@ -60,7 +60,8 @@
                            std::string &outFile,
                            std::string &writeOpts,
                            std::string &dbgFile,
-                           bool &help);
+                           bool &help,
+                           double & epsilon);
 
 // ErrorCode get_file_options(int argc, char **argv, 
 //                              std::vector<const char *> &filenames,
@@ -84,7 +85,8 @@
                              double &pointloc_time,
                              double &interp_time,
                              double &gnorm_time,
-                             double &ssnorm_time);
+                             double &ssnorm_time,
+                             double & toler);
 
 void reduceMax(double &v){
   double buf;
@@ -107,9 +109,10 @@
 
   ErrorCode result = MB_SUCCESS;
   bool help = false;
+  double toler = 5.e-10;
   result = get_file_options(argc, argv, meshFiles, interpTag,
                             gNormTag, ssNormTag, ssTagNames, ssTagValues,
-                            readOpts, outFile, writeOpts, dbgFile, help);
+                            readOpts, outFile, writeOpts, dbgFile, help, toler);
 
   if (result != MB_SUCCESS || help) {
     print_usage();
@@ -169,7 +172,7 @@
   result = test_interpolation(mbImpl, interpTag, gNormTag, ssNormTag, 
                               ssTagNames, ssTagValues, roots, pcs, 
                               instant_time, pointloc_time, interp_time, 
-                              gnorm_time, ssnorm_time);
+                              gnorm_time, ssnorm_time, toler);
   PRINT_LAST_ERROR;
 
   
@@ -271,6 +274,8 @@
   std::cerr << "        Write out mesh files using options in <woptions>." << std::endl;
   std::cerr << "    -dbgout" << std::endl;
   std::cerr << "        Write stdout and stderr streams to the file \'<dbg_file>.txt\'." << std::endl;
+  std::cerr << "    -eps" << std::endl;
+  std::cerr << "        epsilon" << std::endl;


More information about the moab-dev mailing list