cgma
|
00001 00006 #include "InitCGMA.hpp" 00007 00008 #include <iostream> 00009 00010 00011 // main program - initialize, then send to proper function 00012 int main (int argc, char **argv) 00013 { 00014 // first initialization, which should succeed 00015 CubitStatus result = InitCGMA::initialize_cgma(); 00016 if (CUBIT_SUCCESS != result) return 1; 00017 00018 // second initialization, which should also succeed 00019 result = InitCGMA::initialize_cgma(); 00020 if(CUBIT_SUCCESS != result) return 1; 00021 00022 // now try again, with a different argument; should fail. 00023 result = InitCGMA::initialize_cgma( "facet" ); 00024 if(CUBIT_FAILURE != result) return 1; 00025 00026 return 0; 00027 00028 } 00029 00030 00031