Skip to content
Snippets Groups Projects
Select Git revision
  • 4e12ce080a113b1081bf7d38823df3edb2aa1160
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

viewButton.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    CommandLine.cpp 43.48 KiB
    // Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <gmsh@onelab.info>.
    
    #include <string>
    #include <string.h>
    #include <stdlib.h>
    #include <iostream>
    #include <fstream>
    #include "GmshConfig.h"
    #include "GmshDefines.h"
    #include "GmshVersion.h"
    #include "GmshMessage.h"
    #include "OpenFile.h"
    #include "CommandLine.h"
    #include "Context.h"
    #include "Options.h"
    #include "GModel.h"
    #include "CreateFile.h"
    #include "OS.h"
    
    #if defined(HAVE_FLTK)
    #include <FL/Fl.H>
    #if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION >= 3)
    // OK
    #else
    #error "Gmsh requires FLTK >= 1.3"
    #endif
    #endif
    
    #if defined(HAVE_PETSC)
    #include "petsc.h"
    #endif
    
    #if defined(HAVE_OCC)
    #include "Standard_Version.hxx"
    #endif
    
    #if defined(HAVE_MED)
    #include "med.h"
    #endif
    
    #if defined(HAVE_POST)
    #include "PView.h"
    #endif
    
    #if defined(HAVE_MESH)
    #include "periodical.h"
    #endif
    
    #if defined(HAVE_PARSER)
    #include "Parser.h"
    #endif
    
    int GetGmshMajorVersion(){ return GMSH_MAJOR_VERSION; }
    int GetGmshMinorVersion(){ return GMSH_MINOR_VERSION; }
    int GetGmshPatchVersion(){ return GMSH_PATCH_VERSION; }
    const char *GetGmshExtraVersion(){ return GMSH_EXTRA_VERSION; }
    const char *GetGmshVersion(){ return GMSH_VERSION; }
    const char *GetGmshBuildDate(){ return GMSH_DATE; }
    const char *GetGmshBuildHost(){ return GMSH_HOST; }
    const char *GetGmshPackager(){ return GMSH_PACKAGER; }
    const char *GetGmshBuildOS(){ return GMSH_OS; }
    const char *GetGmshShortLicense(){ return GMSH_SHORT_LICENSE; }
    const char *GetGmshBuildOptions(){ return GMSH_CONFIG_OPTIONS; }
    
    std::vector<std::pair<std::string, std::string> > GetUsage()
    {
      typedef std::pair<std::string, std::string> mp;