diff --git a/nglib/Makefile.am b/nglib/Makefile.am index c46af5a7..667cef5f 100644 --- a/nglib/Makefile.am +++ b/nglib/Makefile.am @@ -2,7 +2,8 @@ include_HEADERS = nglib.h dist_pkgdata_DATA = cube.surf -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(OCCFLAGS) $(MPI_INCLUDES) +AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(MPI_INCLUDES) +# $(OCCFLAGS) lib_LTLIBRARIES = libnglib.la libnglib_la_SOURCES = nglib.cpp diff --git a/nglib/nglib.cpp b/nglib/nglib.cpp index 74edfe2d..04b85320 100644 --- a/nglib/nglib.cpp +++ b/nglib/nglib.cpp @@ -641,7 +641,7 @@ DLL_HEADER Ng_Result Ng_OCC_GetFMap(Ng_OCC_Geometry * geom, } else { - return -1; + return NG_ERROR; } } diff --git a/nglib/nglib.h b/nglib/nglib.h index 8f9440cd..5cf62fd2 100644 --- a/nglib/nglib.h +++ b/nglib/nglib.h @@ -74,7 +74,9 @@ enum Ng_Volume_Element_Type /// Values returned by Netgen functions enum Ng_Result - { NG_OK = 0, + { + NG_ERROR = -1, + NG_OK = 0, NG_SURFACE_INPUT_ERROR = 1, NG_VOLUME_FAILURE = 2, NG_STL_INPUT_ERROR = 3,