cgma
init.cpp File Reference

Tests of CGM initialization / shutdown features. More...

#include "InitCGMA.hpp"
#include <iostream>

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Detailed Description

Tests of CGM initialization / shutdown features.

Definition in file init.cpp.


Function Documentation

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;
  
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines