[MOAB-dev] r4761 - MOAB/trunk/test
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Thu Apr 21 08:35:12 CDT 2011
Author: iulian
Date: 2011-04-21 08:35:11 -0500 (Thu, 21 Apr 2011)
New Revision: 4761
Modified:
MOAB/trunk/test/gttool_test.cpp
Log:
move the creation of shell model here
the output files are deleted by default
Modified: MOAB/trunk/test/gttool_test.cpp
===================================================================
--- MOAB/trunk/test/gttool_test.cpp 2011-04-20 21:41:01 UTC (rev 4760)
+++ MOAB/trunk/test/gttool_test.cpp 2011-04-21 13:35:11 UTC (rev 4761)
@@ -44,9 +44,12 @@
std::string filename;
std::string ofile;
+std::string ofile2;
bool remove_output_file;
ErrorCode geometrize_test(Interface * mb, EntityHandle inputSet);
+ErrorCode create_shell_test(Interface * mb);
+
void handle_error_code(ErrorCode rv, int &number_failed, int &number_successful)
{
if (rv == MB_SUCCESS) {
@@ -62,17 +65,20 @@
{
filename = TestDir + "/partBed.smf";
ofile = "output.h5m";
+ ofile2 = "shell.h5m";
remove_output_file = true;
if (argc == 1) {
- std::cout << "Using default input file and output file " << filename << " " << ofile << std::endl;
- } else if (argc == 3) {
+ std::cout << "Using default input file and output files " << filename << " " << ofile <<
+ " " << ofile2 << std::endl;
+ } else if (argc == 4) {
filename = argv[1];
ofile = argv[2];
+ ofile2 = argv[3];
remove_output_file = false;
} else {
- std::cerr << "Usage: " << argv[0] << " [surface_mesh] [mbgeo_file]" << std::endl;
+ std::cerr << "Usage: " << argv[0] << " [surface_mesh] [mbgeo_file] [shellfile]" << std::endl;
return 1;
}
@@ -91,6 +97,13 @@
ErrorCode rval = geometrize_test( mb, 0); // just pass the root set
handle_error_code(rval, number_tests_failed, number_tests_successful);
std::cout << "\n";
+
+ std::cout << "create shell test: ";
+ rval = create_shell_test( mb); // just pass the root set
+ handle_error_code(rval, number_tests_failed, number_tests_successful);
+ std::cout << "\n";
+
More information about the moab-dev
mailing list