#include <iostream>
#include "moab/Core.hpp"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
- Examples
- TestExodusII.cpp.
Definition at line 35 of file TestExodusII.cpp.
37 #ifdef MOAB_HAVE_NETCDF
40 if( NULL ==
mb )
return 1;
45 const char*
tag_nms[] = {
"MATERIAL_SET",
"DIRICHLET_SET",
"NEUMANN_SET" };
51 cout <<
"Running default case, loading " <<
test_file_name << endl;
52 cout <<
"Usage: " << argv[0] <<
" <filename>\n" << endl;
58 cout <<
"Loaded mesh file: " << argv[argc - 1] << endl;
62 for(
int i = 0; i < 3; i++ )
72 for( set_it = sets.
begin(); set_it != sets.
end(); ++set_it )
83 cout <<
tag_nms[i] <<
" " << set_id <<
" has " << set_ents.
size() <<
" entities:" << endl;
86 set_ents.
print(
" " );
93 cout <<
" This test needs moab configured with netcdf \n";
References moab::Range::begin(), moab::Range::clear(), moab::Range::end(), ErrorCode, moab::Core::get_entities_by_handle(), moab::Core::get_entities_by_type_and_tag(), moab::Core::load_file(), mb, MB_CHK_ERR, MB_TYPE_INTEGER, MBENTITYSET, moab::Range::print(), moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_get_handle(), tag_nms, and test_file_name.
◆ test_file_name
string test_file_name = string( MESH_DIR ) + string( "/mbtest2.g" ) |