Skip to content
Snippets Groups Projects
Commit 53e1818a authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

report OCC version

parent d0795cfe
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#endif #endif
#if defined(HAVE_OCC) #if defined(HAVE_OCC)
#include <Standard_Version.hxx> #include "Standard_Version.hxx"
#endif #endif
#if defined(HAVE_POST) #if defined(HAVE_POST)
...@@ -929,13 +929,14 @@ void GetOptions(int argc, char *argv[]) ...@@ -929,13 +929,14 @@ void GetOptions(int argc, char *argv[])
FL_MINOR_VERSION, FL_PATCH_VERSION); FL_MINOR_VERSION, FL_PATCH_VERSION);
#endif #endif
#if defined(HAVE_PETSC) #if defined(HAVE_PETSC)
fprintf(stderr, "PETSc version : %d.%d.%d\n", PETSC_VERSION_MAJOR, fprintf(stderr, "PETSc version : %d.%d.%d (%s arithmtic)\n", PETSC_VERSION_MAJOR,
PETSC_VERSION_MINOR, PETSC_VERSION_SUBMINOR); PETSC_VERSION_MINOR, PETSC_VERSION_SUBMINOR,
#if defined(PETSC_USE_COMPLEX) #if defined(PETSC_USE_COMPLEX)
fprintf(stderr, "PETSc arithmetic : Complex\n"); "complex"
#else #else
fprintf(stderr, "PETSc arithmetic : Real\n"); "real"
#endif #endif
);
#endif #endif
#if defined(HAVE_OCC) #if defined(HAVE_OCC)
fprintf(stderr, "OCC version : %d.%d.%d\n", OCC_VERSION_MAJOR, fprintf(stderr, "OCC version : %d.%d.%d\n", OCC_VERSION_MAJOR,
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
#include "petsc.h" #include "petsc.h"
#endif #endif
#if defined(HAVE_OCC)
#include "Standard_Version.hxx"
#endif
static const char *help_link(Fl_Widget *w, const char *uri) static const char *help_link(Fl_Widget *w, const char *uri)
{ {
fl_open_uri(uri); fl_open_uri(uri);
...@@ -309,10 +313,14 @@ helpWindow::helpWindow() ...@@ -309,10 +313,14 @@ helpWindow::helpWindow()
<< "<li><i>PETSc version:</i> " << PETSC_VERSION_MAJOR << "." << "<li><i>PETSc version:</i> " << PETSC_VERSION_MAJOR << "."
<< PETSC_VERSION_MINOR << "." << PETSC_VERSION_SUBMINOR << PETSC_VERSION_MINOR << "." << PETSC_VERSION_SUBMINOR
#if defined(PETSC_USE_COMPLEX) #if defined(PETSC_USE_COMPLEX)
<< "<li><i>PETSc arithmetic:</i> Complex" << " (complex arithmetic)"
#else #else
<< "<li><i>PETSc arithmetic:</i> Real" << " (real arithmetic)"
#endif
#endif #endif
#if defined(HAVE_OCC)
<< "<li><i>OCC version:</i> " << OCC_VERSION_MAJOR << "."
<< OCC_VERSION_MINOR << "." << OCC_VERSION_MAINTENANCE
#endif #endif
<< "<li><i>Packaged by:</i> " << GetGmshPackager() << "<li><i>Packaged by:</i> " << GetGmshPackager()
<< "</ul>" << "</ul>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment