|
cgma
|
Tests of CGM initialization / shutdown features. More...
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Tests of CGM initialization / shutdown features.
Definition in file init.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 12 of file init.cpp.
{
// first initialization, which should succeed
CubitStatus result = InitCGMA::initialize_cgma();
if (CUBIT_SUCCESS != result) return 1;
// second initialization, which should also succeed
result = InitCGMA::initialize_cgma();
if(CUBIT_SUCCESS != result) return 1;
// now try again, with a different argument; should fail.
result = InitCGMA::initialize_cgma( "facet" );
if(CUBIT_FAILURE != result) return 1;
return 0;
}